author | zautrix <zautrix> | 2005-02-25 11:29:28 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-25 11:29:28 (UTC) |
commit | ff810f8f74f6928e664bf52f8e8d128edb8ac5ad (patch) (unidiff) | |
tree | d5473801c69b42d90879104fc4d05a5ad9b69e87 /microkde | |
parent | ff8a2f593fae5ffe82f889ab70d32bf02a45f4fb (diff) | |
download | kdepimpi-ff810f8f74f6928e664bf52f8e8d128edb8ac5ad.zip kdepimpi-ff810f8f74f6928e664bf52f8e8d128edb8ac5ad.tar.gz kdepimpi-ff810f8f74f6928e664bf52f8e8d128edb8ac5ad.tar.bz2 |
many small fixes
-rw-r--r-- | microkde/kdialogbase.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/microkde/kdialogbase.cpp b/microkde/kdialogbase.cpp index 801094a..f453331 100644 --- a/microkde/kdialogbase.cpp +++ b/microkde/kdialogbase.cpp | |||
@@ -31,26 +31,28 @@ KDialogBase::KDialogBase( QWidget *parent, const char *name, bool modal, | |||
31 | } | 31 | } |
32 | 32 | ||
33 | KDialogBase::KDialogBase( int dialogFace, const QString &caption, | 33 | KDialogBase::KDialogBase( int dialogFace, const QString &caption, |
34 | int buttonMask, ButtonCode defaultButton, | 34 | int buttonMask, ButtonCode defaultButton, |
35 | QWidget *parent, const char *name, bool modal, | 35 | QWidget *parent, const char *name, bool modal, |
36 | bool separator, | 36 | bool separator, |
37 | const QString &user1, | 37 | const QString &user1, |
38 | const QString &user2, | 38 | const QString &user2, |
39 | const QString &user3) : | 39 | const QString &user3) : |
40 | KDialog( parent, name, modal ) | 40 | KDialog( parent, name, modal ) |
41 | { | 41 | { |
42 | init( caption, buttonMask, user1, user2 ); | 42 | init( caption, buttonMask, user1, user2 ); |
43 | if (findButton( defaultButton ) ) | 43 | if (findButton( defaultButton ) ) { |
44 | (findButton( defaultButton ) )->setFocus(); | 44 | (findButton( defaultButton ) )->setFocus(); |
45 | (findButton( defaultButton ) )->setDefault( true ); | ||
46 | } | ||
45 | 47 | ||
46 | } | 48 | } |
47 | 49 | ||
48 | KDialogBase::~KDialogBase() | 50 | KDialogBase::~KDialogBase() |
49 | { | 51 | { |
50 | } | 52 | } |
51 | 53 | ||
52 | void KDialogBase::init( const QString &caption, int buttonMask, | 54 | void KDialogBase::init( const QString &caption, int buttonMask, |
53 | const QString &user1 ,const QString &user2 ) | 55 | const QString &user1 ,const QString &user2 ) |
54 | { | 56 | { |
55 | mMainWidget = 0; | 57 | mMainWidget = 0; |
56 | mTabWidget = 0; | 58 | mTabWidget = 0; |
@@ -67,25 +69,25 @@ void KDialogBase::init( const QString &caption, int buttonMask, | |||
67 | mUser1Button = 0; | 69 | mUser1Button = 0; |
68 | } | 70 | } |
69 | if ( buttonMask & User2 ) { | 71 | if ( buttonMask & User2 ) { |
70 | mUser2Button = new QPushButton( user2, this ); | 72 | mUser2Button = new QPushButton( user2, this ); |
71 | connect( mUser2Button, SIGNAL( clicked() ), SLOT( slotUser2() ) ); | 73 | connect( mUser2Button, SIGNAL( clicked() ), SLOT( slotUser2() ) ); |
72 | } else { | 74 | } else { |
73 | mUser2Button = 0; | 75 | mUser2Button = 0; |
74 | } | 76 | } |
75 | 77 | ||
76 | if ( buttonMask & Ok ) { | 78 | if ( buttonMask & Ok ) { |
77 | mOkButton = new QPushButton( i18n("Ok"), this ); | 79 | mOkButton = new QPushButton( i18n("Ok"), this ); |
78 | connect( mOkButton, SIGNAL( clicked() ), SLOT( slotOk() ) ); | 80 | connect( mOkButton, SIGNAL( clicked() ), SLOT( slotOk() ) ); |
79 | mOkButton->setDefault( true ); | 81 | //mOkButton->setDefault( true ); |
80 | } else { | 82 | } else { |
81 | mOkButton = 0; | 83 | mOkButton = 0; |
82 | } | 84 | } |
83 | if ( buttonMask & Default ) { | 85 | if ( buttonMask & Default ) { |
84 | mDefaultButton = new QPushButton( i18n("Default"), this ); | 86 | mDefaultButton = new QPushButton( i18n("Default"), this ); |
85 | connect( mDefaultButton, SIGNAL( clicked() ), SIGNAL( defaultClicked() ) ); | 87 | connect( mDefaultButton, SIGNAL( clicked() ), SIGNAL( defaultClicked() ) ); |
86 | } else { | 88 | } else { |
87 | mDefaultButton = 0; | 89 | mDefaultButton = 0; |
88 | } | 90 | } |
89 | 91 | ||
90 | if ( buttonMask & Apply ) { | 92 | if ( buttonMask & Apply ) { |
91 | mApplyButton = new QPushButton( i18n("Apply"), this ); | 93 | mApplyButton = new QPushButton( i18n("Apply"), this ); |