author | zautrix <zautrix> | 2005-08-17 14:48:16 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-08-17 14:48:16 (UTC) |
commit | 9e6d1f7f45ef1444dc6ee96347a2dbd67a0d79dd (patch) (unidiff) | |
tree | 4db3dfc9b67b56f415a9aab4306cc6375c6e7310 /kaddressbook/kcmconfigs | |
parent | cb4e02944327194bc6066c4ec96826afc0ea178f (diff) | |
download | kdepimpi-9e6d1f7f45ef1444dc6ee96347a2dbd67a0d79dd.zip kdepimpi-9e6d1f7f45ef1444dc6ee96347a2dbd67a0d79dd.tar.gz kdepimpi-9e6d1f7f45ef1444dc6ee96347a2dbd67a0d79dd.tar.bz2 |
kapi dlete conf
-rw-r--r-- | kaddressbook/kcmconfigs/kabconfigwidget.cpp | 6 | ||||
-rw-r--r-- | kaddressbook/kcmconfigs/kabconfigwidget.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/kaddressbook/kcmconfigs/kabconfigwidget.cpp b/kaddressbook/kcmconfigs/kabconfigwidget.cpp index 1b4652a..9e4db74 100644 --- a/kaddressbook/kcmconfigs/kabconfigwidget.cpp +++ b/kaddressbook/kcmconfigs/kabconfigwidget.cpp | |||
@@ -142,6 +142,9 @@ KABConfigWidget::KABConfigWidget( KABPrefs* prefs, QWidget *parent, const char * | |||
142 | mMultipleViewsAtOnce = new QCheckBox( i18n( "Display List and Details at once (restart)" ), vBox, "mdisplay" ); | 142 | mMultipleViewsAtOnce = new QCheckBox( i18n( "Display List and Details at once (restart)" ), vBox, "mdisplay" ); |
143 | boxLayout->addWidget( mMultipleViewsAtOnce ); | 143 | boxLayout->addWidget( mMultipleViewsAtOnce ); |
144 | 144 | ||
145 | mAskForDelete = new QCheckBox( i18n( "Ask before delete contact" ), vBox, "mdel" ); | ||
146 | boxLayout->addWidget( mAskForDelete ); | ||
147 | |||
145 | mAskForQuit = new QCheckBox( i18n( "Show exit confirmation" ), vBox, "mquit" ); | 148 | mAskForQuit = new QCheckBox( i18n( "Show exit confirmation" ), vBox, "mquit" ); |
146 | boxLayout->addWidget( mAskForQuit ); | 149 | boxLayout->addWidget( mAskForQuit ); |
147 | 150 | ||
@@ -185,6 +188,7 @@ KABConfigWidget::KABConfigWidget( KABPrefs* prefs, QWidget *parent, const char * | |||
185 | connect( mHideSearchOnSwitchBox, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) ); | 188 | connect( mHideSearchOnSwitchBox, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) ); |
186 | connect( mMultipleViewsAtOnce, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) ); | 189 | connect( mMultipleViewsAtOnce, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) ); |
187 | connect( mAskForQuit, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) ); | 190 | connect( mAskForQuit, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) ); |
191 | connect( mAskForDelete, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) ); | ||
188 | connect( mExtensionView, SIGNAL( selectionChanged( QListViewItem* ) ), | 192 | connect( mExtensionView, SIGNAL( selectionChanged( QListViewItem* ) ), |
189 | SLOT( selectionChanged( QListViewItem* ) ) ); | 193 | SLOT( selectionChanged( QListViewItem* ) ) ); |
190 | connect( mExtensionView, SIGNAL( clicked( QListViewItem* ) ), | 194 | connect( mExtensionView, SIGNAL( clicked( QListViewItem* ) ), |
@@ -215,6 +219,7 @@ void KABConfigWidget::usrReadConfig() | |||
215 | mHideSearchOnSwitchBox->setChecked( prefs->mHideSearchOnSwitch ); | 219 | mHideSearchOnSwitchBox->setChecked( prefs->mHideSearchOnSwitch ); |
216 | mMultipleViewsAtOnce->setChecked( prefs->mMultipleViewsAtOnce ); | 220 | mMultipleViewsAtOnce->setChecked( prefs->mMultipleViewsAtOnce ); |
217 | mAskForQuit->setChecked( prefs->mAskForQuit ); | 221 | mAskForQuit->setChecked( prefs->mAskForQuit ); |
222 | mAskForDelete->setChecked( prefs->mAskForDelete ); | ||
218 | 223 | ||
219 | mAddresseeWidget->restoreSettings(); | 224 | mAddresseeWidget->restoreSettings(); |
220 | 225 | ||
@@ -236,6 +241,7 @@ void KABConfigWidget::usrWriteConfig() | |||
236 | 241 | ||
237 | prefs->mMultipleViewsAtOnce = mMultipleViewsAtOnce->isChecked(); | 242 | prefs->mMultipleViewsAtOnce = mMultipleViewsAtOnce->isChecked(); |
238 | prefs->mAskForQuit = mAskForQuit->isChecked(); | 243 | prefs->mAskForQuit = mAskForQuit->isChecked(); |
244 | prefs->mAskForDelete = mAskForDelete->isChecked(); | ||
239 | 245 | ||
240 | mAddresseeWidget->saveSettings(); | 246 | mAddresseeWidget->saveSettings(); |
241 | 247 | ||
diff --git a/kaddressbook/kcmconfigs/kabconfigwidget.h b/kaddressbook/kcmconfigs/kabconfigwidget.h index a172e97..f2a6b1b 100644 --- a/kaddressbook/kcmconfigs/kabconfigwidget.h +++ b/kaddressbook/kcmconfigs/kabconfigwidget.h | |||
@@ -69,6 +69,7 @@ class KABConfigWidget : public KPrefsWidget | |||
69 | QCheckBox *mMultipleViewsAtOnce; | 69 | QCheckBox *mMultipleViewsAtOnce; |
70 | QCheckBox *mAskForQuit; | 70 | QCheckBox *mAskForQuit; |
71 | QCheckBox *mMenuBarBox; | 71 | QCheckBox *mMenuBarBox; |
72 | QCheckBox *mAskForDelete; | ||
72 | QPushButton *mConfigureButton; | 73 | QPushButton *mConfigureButton; |
73 | 74 | ||
74 | AddresseeWidget *mAddresseeWidget; | 75 | AddresseeWidget *mAddresseeWidget; |