summaryrefslogtreecommitdiffabout
path: root/kaddressbook/kcmconfigs
authorzautrix <zautrix>2004-09-11 22:40:15 (UTC)
committer zautrix <zautrix>2004-09-11 22:40:15 (UTC)
commita040c9d56282dae396b02627fafb602e44323837 (patch) (side-by-side diff)
tree9ee997f51e46a1ae6ab5aeaab709f1b8e138f3df /kaddressbook/kcmconfigs
parent53dda80aaab72d7efdbed8a206dc1fa64fed10ee (diff)
downloadkdepimpi-a040c9d56282dae396b02627fafb602e44323837.zip
kdepimpi-a040c9d56282dae396b02627fafb602e44323837.tar.gz
kdepimpi-a040c9d56282dae396b02627fafb602e44323837.tar.bz2
Added configure for search
Diffstat (limited to 'kaddressbook/kcmconfigs') (more/less context) (show whitespace changes)
-rw-r--r--kaddressbook/kcmconfigs/kabconfigwidget.cpp6
-rw-r--r--kaddressbook/kcmconfigs/kabconfigwidget.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/kaddressbook/kcmconfigs/kabconfigwidget.cpp b/kaddressbook/kcmconfigs/kabconfigwidget.cpp
index 3a2ccbb..0c3a199 100644
--- a/kaddressbook/kcmconfigs/kabconfigwidget.cpp
+++ b/kaddressbook/kcmconfigs/kabconfigwidget.cpp
@@ -108,2 +108,4 @@ KABConfigWidget::KABConfigWidget( QWidget *parent, const char *name )
boxLayout->setSpacing( KDialog::spacingHintSmall() );
+ mSearchReturnBox = new QCheckBox( i18n( "Search only after <return> key pressed" ), vBox, "mreturn" );
+ boxLayout->addWidget( mSearchReturnBox );
mViewsSingleClickBox = new QCheckBox( i18n( "Honor KDE single click" ), vBox, "msingle" );
@@ -154,2 +156,3 @@ KABConfigWidget::KABConfigWidget( QWidget *parent, const char *name )
connect( mViewsSingleClickBox, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) );
+ connect( mSearchReturnBox, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) );
connect( mMultipleViewsAtOnce, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) );
@@ -182,2 +185,3 @@ void KABConfigWidget::restoreSettings(KABPrefs* prefs)
mViewsSingleClickBox->setChecked( prefs->mHonorSingleClick );
+ mSearchReturnBox->setChecked( prefs->mSearchWithReturn );
mMultipleViewsAtOnce->setChecked( prefs->mMultipleViewsAtOnce );
@@ -198,2 +202,3 @@ void KABConfigWidget::saveSettings(KABPrefs* prefs)
prefs->mHonorSingleClick = mViewsSingleClickBox->isChecked();
+ prefs->mSearchWithReturn = mSearchReturnBox->isChecked();
prefs->mMultipleViewsAtOnce = mMultipleViewsAtOnce->isChecked();
@@ -214,2 +219,3 @@ void KABConfigWidget::defaults(KABPrefs* prefs)
mMultipleViewsAtOnce->setChecked( true );
+ mSearchReturnBox->setChecked( true );
mAskForQuit->setChecked (true);
diff --git a/kaddressbook/kcmconfigs/kabconfigwidget.h b/kaddressbook/kcmconfigs/kabconfigwidget.h
index 831efc1..6cd4223 100644
--- a/kaddressbook/kcmconfigs/kabconfigwidget.h
+++ b/kaddressbook/kcmconfigs/kabconfigwidget.h
@@ -67,3 +67,3 @@ class KABConfigWidget : public QWidget
KListView *mExtensionView;
-
+ QCheckBox *mSearchReturnBox;
QCheckBox *mNameParsing;