-rw-r--r-- | kaddressbook/kcmconfigs/kabconfigwidget.cpp | 9 | ||||
-rw-r--r-- | kaddressbook/kcmconfigs/kabconfigwidget.h | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/kaddressbook/kcmconfigs/kabconfigwidget.cpp b/kaddressbook/kcmconfigs/kabconfigwidget.cpp index b5309c0..31ab7b5 100644 --- a/kaddressbook/kcmconfigs/kabconfigwidget.cpp +++ b/kaddressbook/kcmconfigs/kabconfigwidget.cpp @@ -113,2 +113,5 @@ KABConfigWidget::KABConfigWidget( QWidget *parent, const char *name ) + mMultipleViewsAtOnce = new QCheckBox( i18n( "Display List and Details at once (restart)" ), groupBox, "mdisplay" ); + boxLayout->addWidget( mMultipleViewsAtOnce ); + layout->addWidget( groupBox ); @@ -118,3 +121,3 @@ KABConfigWidget::KABConfigWidget( QWidget *parent, const char *name ) - groupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Extensions" ), generalPage ); + groupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Extensions (restart)" ), generalPage ); boxLayout = new QVBoxLayout( groupBox->layout() ); @@ -141,2 +144,3 @@ KABConfigWidget::KABConfigWidget( QWidget *parent, const char *name ) connect( mViewsSingleClickBox, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) ); + connect( mMultipleViewsAtOnce, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) ); connect( mExtensionView, SIGNAL( selectionChanged( QListViewItem* ) ), @@ -167,2 +171,3 @@ void KABConfigWidget::restoreSettings(KABPrefs* prefs) mViewsSingleClickBox->setChecked( prefs->mHonorSingleClick ); + mMultipleViewsAtOnce->setChecked( prefs->mMultipleViewsAtOnce ); @@ -181,2 +186,3 @@ void KABConfigWidget::saveSettings(KABPrefs* prefs) prefs->mHonorSingleClick = mViewsSingleClickBox->isChecked(); + prefs->mMultipleViewsAtOnce = mMultipleViewsAtOnce->isChecked(); @@ -194,2 +200,3 @@ void KABConfigWidget::defaults(KABPrefs* prefs) mViewsSingleClickBox->setChecked( false ); + mMultipleViewsAtOnce->setChecked( true ); diff --git a/kaddressbook/kcmconfigs/kabconfigwidget.h b/kaddressbook/kcmconfigs/kabconfigwidget.h index 8c0c436..2928495 100644 --- a/kaddressbook/kcmconfigs/kabconfigwidget.h +++ b/kaddressbook/kcmconfigs/kabconfigwidget.h @@ -70,2 +70,4 @@ class KABConfigWidget : public QWidget QCheckBox *mViewsSingleClickBox; + QCheckBox *mMultipleViewsAtOnce; + QPushButton *mConfigureButton; |