-rw-r--r-- | microkde/kdialogbase.cpp | 25 | ||||
-rw-r--r-- | microkde/kutils/kcmultidialog.cpp | 23 |
2 files changed, 25 insertions, 23 deletions
diff --git a/microkde/kdialogbase.cpp b/microkde/kdialogbase.cpp index c953058..d1f7630 100644 --- a/microkde/kdialogbase.cpp +++ b/microkde/kdialogbase.cpp @@ -18,3 +18,3 @@ KDialogBase::KDialogBase( QWidget *parent, const char *name, bool modal, int buttonMask, ButtonCode defaultButton, - bool separator, + bool separator, const QString &user1, @@ -30,5 +30,5 @@ KDialogBase::KDialogBase( QWidget *parent, const char *name, bool modal, -KDialogBase::KDialogBase( int dialogFace, const QString &caption, - int buttonMask, ButtonCode defaultButton, - QWidget *parent, const char *name, bool modal, +KDialogBase::KDialogBase( int dialogFace, const QString &caption, + int buttonMask, ButtonCode defaultButton, + QWidget *parent, const char *name, bool modal, bool separator, @@ -80,3 +80,2 @@ void KDialogBase::init( const QString &caption, int buttonMask, if ( buttonMask & Default ) { - qDebug("buttonMask & Default "); mDefaultButton = new QPushButton( i18n("Default"), this ); @@ -106,3 +105,3 @@ void KDialogBase::init( const QString &caption, int buttonMask, mCloseButton = 0; - } + } } @@ -127,3 +126,3 @@ void KDialogBase::hideButtons() if ( mCloseButton ) mCloseButton->hide() ; - + } @@ -131,3 +130,3 @@ void KDialogBase::initLayout() { - + delete mTopLayout; @@ -136,8 +135,8 @@ void KDialogBase::initLayout() mTopLayout->setSpacing( spacingHint() ); - + mTopLayout->addWidget( mMainWidget ); - + QBoxLayout *buttonLayout = new QHBoxLayout; mTopLayout->addLayout( buttonLayout ); - + if ( mUser1Button ) buttonLayout->addWidget( mUser1Button ); @@ -207,3 +206,3 @@ QPushButton *KDialogBase::findButton( ButtonCode id ) button = mCancelButton; - break; + break; case Default: @@ -215,3 +214,3 @@ QPushButton *KDialogBase::findButton( ButtonCode id ) default: - break; + break; } diff --git a/microkde/kutils/kcmultidialog.cpp b/microkde/kutils/kcmultidialog.cpp index 4136622..13be2ce 100644 --- a/microkde/kutils/kcmultidialog.cpp +++ b/microkde/kutils/kcmultidialog.cpp @@ -45,2 +45,5 @@ KCMultiDialog::KCMultiDialog(const QString& baseGroup, QWidget *parent, const ch //connect(this, SIGNAL(aboutToShowPage(QWidget *)), this, SLOT(slotAboutToShow(QWidget *))); + + connect( this, SIGNAL( defaultClicked() ), SLOT( slotDefault() ) ); + _baseGroup = baseGroup; @@ -51,3 +54,3 @@ KCMultiDialog::KCMultiDialog(const QString& baseGroup, QWidget *parent, const ch #else - resize(640,480); + resize(640,480); setMaximumSize( KMIN(KGlobal::getDesktopWidth()-5, 640), KMIN(KGlobal::getDesktopHeight()-20, 480)); @@ -55,3 +58,3 @@ KCMultiDialog::KCMultiDialog(const QString& baseGroup, QWidget *parent, const ch #endif - + } @@ -67,3 +70,3 @@ void KCMultiDialog::slotDefault() int curPageIndex = mMainWidget->activePageIndex(); - + QPtrListIterator<KCModule> it(modules); @@ -78,3 +81,3 @@ void KCMultiDialog::slotDefault() } - + } @@ -91,3 +94,3 @@ qDebug("KCMultiDialog::slotApply clicked"); emit applyClicked(); - + } @@ -98,3 +101,3 @@ void KCMultiDialog::slotOk() qDebug("KCMultiDialog::slotOk clicked"); - + QPtrListIterator<KCModule> it(modules); @@ -121,3 +124,3 @@ void KCMultiDialog::slotHelp() } -*/ +*/ } @@ -129,3 +132,3 @@ void KCMultiDialog::clientChanged(bool state) -/*US +/*US void KCMultiDialog::addModule(const QString& path, bool withfallback) @@ -159,3 +162,3 @@ void KCMultiDialog::addModule(KCModule* module ) //, const QString& modulename, connect(module, SIGNAL(changed(bool)), this, SLOT(clientChanged(bool))); - + @@ -199,3 +202,3 @@ void KCMultiDialog::slotAboutToShow(QWidget *page) -qDebug("KCMultiDialog::slotAboutToShow not implemented"); +qDebug("KCMultiDialog::slotAboutToShow not implemented"); } |