-rw-r--r-- | kaddressbook/kabprefs.cpp | 2 | ||||
-rw-r--r-- | kaddressbook/kabprefs.h | 1 | ||||
-rw-r--r-- | kaddressbook/kcmconfigs/kabconfigwidget.cpp | 9 | ||||
-rw-r--r-- | kaddressbook/kcmconfigs/kabconfigwidget.h | 2 |
4 files changed, 13 insertions, 1 deletions
diff --git a/kaddressbook/kabprefs.cpp b/kaddressbook/kabprefs.cpp index 0c192dd..03c5e76 100644 --- a/kaddressbook/kabprefs.cpp +++ b/kaddressbook/kabprefs.cpp | |||
@@ -60,2 +60,4 @@ KABPrefs::KABPrefs() | |||
60 | addItemIntList( "DetailsSplitter", &mDetailsSplitter ); | 60 | addItemIntList( "DetailsSplitter", &mDetailsSplitter ); |
61 | addItemBool( "MultipleViewsAtOnce", &mMultipleViewsAtOnce, true ); | ||
62 | |||
61 | 63 | ||
diff --git a/kaddressbook/kabprefs.h b/kaddressbook/kabprefs.h index 8f149ac..03e529f 100644 --- a/kaddressbook/kabprefs.h +++ b/kaddressbook/kabprefs.h | |||
@@ -67,2 +67,3 @@ class KABPrefs : public KPimPrefs | |||
67 | bool mDetailsPageVisible; | 67 | bool mDetailsPageVisible; |
68 | bool mMultipleViewsAtOnce; | ||
68 | QValueList<int> mExtensionsSplitter; | 69 | QValueList<int> mExtensionsSplitter; |
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 ) | |||
113 | 113 | ||
114 | mMultipleViewsAtOnce = new QCheckBox( i18n( "Display List and Details at once (restart)" ), groupBox, "mdisplay" ); | ||
115 | boxLayout->addWidget( mMultipleViewsAtOnce ); | ||
116 | |||
114 | layout->addWidget( groupBox ); | 117 | layout->addWidget( groupBox ); |
@@ -118,3 +121,3 @@ KABConfigWidget::KABConfigWidget( QWidget *parent, const char *name ) | |||
118 | 121 | ||
119 | groupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Extensions" ), generalPage ); | 122 | groupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Extensions (restart)" ), generalPage ); |
120 | boxLayout = new QVBoxLayout( groupBox->layout() ); | 123 | boxLayout = new QVBoxLayout( groupBox->layout() ); |
@@ -141,2 +144,3 @@ KABConfigWidget::KABConfigWidget( QWidget *parent, const char *name ) | |||
141 | connect( mViewsSingleClickBox, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) ); | 144 | connect( mViewsSingleClickBox, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) ); |
145 | connect( mMultipleViewsAtOnce, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) ); | ||
142 | connect( mExtensionView, SIGNAL( selectionChanged( QListViewItem* ) ), | 146 | connect( mExtensionView, SIGNAL( selectionChanged( QListViewItem* ) ), |
@@ -167,2 +171,3 @@ void KABConfigWidget::restoreSettings(KABPrefs* prefs) | |||
167 | mViewsSingleClickBox->setChecked( prefs->mHonorSingleClick ); | 171 | mViewsSingleClickBox->setChecked( prefs->mHonorSingleClick ); |
172 | mMultipleViewsAtOnce->setChecked( prefs->mMultipleViewsAtOnce ); | ||
168 | 173 | ||
@@ -181,2 +186,3 @@ void KABConfigWidget::saveSettings(KABPrefs* prefs) | |||
181 | prefs->mHonorSingleClick = mViewsSingleClickBox->isChecked(); | 186 | prefs->mHonorSingleClick = mViewsSingleClickBox->isChecked(); |
187 | prefs->mMultipleViewsAtOnce = mMultipleViewsAtOnce->isChecked(); | ||
182 | 188 | ||
@@ -194,2 +200,3 @@ void KABConfigWidget::defaults(KABPrefs* prefs) | |||
194 | mViewsSingleClickBox->setChecked( false ); | 200 | mViewsSingleClickBox->setChecked( false ); |
201 | mMultipleViewsAtOnce->setChecked( true ); | ||
195 | 202 | ||
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 | |||
70 | QCheckBox *mViewsSingleClickBox; | 70 | QCheckBox *mViewsSingleClickBox; |
71 | QCheckBox *mMultipleViewsAtOnce; | ||
72 | |||
71 | QPushButton *mConfigureButton; | 73 | QPushButton *mConfigureButton; |