summaryrefslogtreecommitdiffabout
path: root/microkde/kdialogbase.cpp
authorzautrix <zautrix>2005-02-21 13:34:06 (UTC)
committer zautrix <zautrix>2005-02-21 13:34:06 (UTC)
commitce261d6197d319d67f7b275813449f36ce42a730 (patch) (side-by-side diff)
tree6221eef1d00a918127377883eaf76f8162db6772 /microkde/kdialogbase.cpp
parentb4ebc9c227f986369fe9b0193158f3893a29df08 (diff)
downloadkdepimpi-ce261d6197d319d67f7b275813449f36ce42a730.zip
kdepimpi-ce261d6197d319d67f7b275813449f36ce42a730.tar.gz
kdepimpi-ce261d6197d319d67f7b275813449f36ce42a730.tar.bz2
default button fixes
Diffstat (limited to 'microkde/kdialogbase.cpp') (more/less context) (show whitespace changes)
-rw-r--r--microkde/kdialogbase.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/microkde/kdialogbase.cpp b/microkde/kdialogbase.cpp
index d1f7630..801094a 100644
--- a/microkde/kdialogbase.cpp
+++ b/microkde/kdialogbase.cpp
@@ -25,4 +25,6 @@ KDialogBase::KDialogBase( QWidget *parent, const char *name, bool modal,
init( caption, buttonMask, user1, user2 );
- if (findButton( defaultButton ) )
+ if (findButton( defaultButton ) ) {
(findButton( defaultButton ) )->setFocus();
+ (findButton( defaultButton ) )->setDefault( true );
+ }
@@ -76,2 +78,3 @@ void KDialogBase::init( const QString &caption, int buttonMask,
connect( mOkButton, SIGNAL( clicked() ), SLOT( slotOk() ) );
+ mOkButton->setDefault( true );
} else {