author | zautrix <zautrix> | 2005-03-29 21:36:59 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-29 21:36:59 (UTC) |
commit | c4357089980802187203b6e418f0f267043d7041 (patch) (unidiff) | |
tree | b73f0d95e90f41979ca65e33803d258c77959db9 | |
parent | 4a567b23fa5b4e3165839a478dca8eab513959a2 (diff) | |
download | kdepimpi-c4357089980802187203b6e418f0f267043d7041.zip kdepimpi-c4357089980802187203b6e418f0f267043d7041.tar.gz kdepimpi-c4357089980802187203b6e418f0f267043d7041.tar.bz2 |
fix
-rw-r--r-- | kaddressbook/kabcore.cpp | 6 | ||||
-rw-r--r-- | kaddressbook/kabcore.h | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 3650b20..1433568 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -357,17 +357,17 @@ KABCore::KABCore( KXMLGUIClient *client, bool readWrite, QWidget *parent, const | |||
357 | 357 | ||
358 | connect( mExtensionManager, SIGNAL( modified( const KABC::Addressee::List& ) ), this, SLOT( extensionModified( const KABC::Addressee::List& ) ) ); | 358 | connect( mExtensionManager, SIGNAL( modified( const KABC::Addressee::List& ) ), this, SLOT( extensionModified( const KABC::Addressee::List& ) ) ); |
359 | connect( mExtensionManager, SIGNAL( changedActiveExtension( int ) ), this, SLOT( extensionChanged( int ) ) ); | 359 | connect( mExtensionManager, SIGNAL( changedActiveExtension( int ) ), this, SLOT( extensionChanged( int ) ) ); |
360 | 360 | ||
361 | connect( mXXPortManager, SIGNAL( modified() ), | 361 | connect( mXXPortManager, SIGNAL( modified() ), |
362 | SLOT( setModified() ) ); | 362 | SLOT( setModified() ) ); |
363 | 363 | ||
364 | connect( mJumpButtonBar, SIGNAL( jumpToLetter( const QString& ) ), | 364 | connect( mJumpButtonBar, SIGNAL( jumpToLetter( const QString& ) ), |
365 | SLOT( incrementalSearch( const QString& ) ) ); | 365 | SLOT( incrementalSearchJump( const QString& ) ) ); |
366 | connect( mIncSearchWidget, SIGNAL( fieldChanged() ), | 366 | connect( mIncSearchWidget, SIGNAL( fieldChanged() ), |
367 | mJumpButtonBar, SLOT( recreateButtons() ) ); | 367 | mJumpButtonBar, SLOT( recreateButtons() ) ); |
368 | 368 | ||
369 | connect( mDetails, SIGNAL( sendEmail( const QString& ) ), | 369 | connect( mDetails, SIGNAL( sendEmail( const QString& ) ), |
370 | SLOT( sendMail( const QString& ) ) ); | 370 | SLOT( sendMail( const QString& ) ) ); |
371 | 371 | ||
372 | 372 | ||
373 | connect( ExternalAppHandler::instance(), SIGNAL (requestForNameEmailUidList(const QString&, const QString&)),this, SLOT(requestForNameEmailUidList(const QString&, const QString&))); | 373 | connect( ExternalAppHandler::instance(), SIGNAL (requestForNameEmailUidList(const QString&, const QString&)),this, SLOT(requestForNameEmailUidList(const QString&, const QString&))); |
@@ -1168,16 +1168,20 @@ void KABCore::incrementalSearch( const QString& text ) | |||
1168 | QString stext; | 1168 | QString stext; |
1169 | if ( KABPrefs::instance()->mAutoSearchWithWildcard ) { | 1169 | if ( KABPrefs::instance()->mAutoSearchWithWildcard ) { |
1170 | stext = "*" + text; | 1170 | stext = "*" + text; |
1171 | } else { | 1171 | } else { |
1172 | stext = text; | 1172 | stext = text; |
1173 | } | 1173 | } |
1174 | mViewManager->doSearch( stext, mIncSearchWidget->currentField() ); | 1174 | mViewManager->doSearch( stext, mIncSearchWidget->currentField() ); |
1175 | } | 1175 | } |
1176 | void KABCore::incrementalSearchJump( const QString& text ) | ||
1177 | { | ||
1178 | mViewManager->doSearch( text, mIncSearchWidget->currentField() ); | ||
1179 | } | ||
1176 | 1180 | ||
1177 | void KABCore::setModified() | 1181 | void KABCore::setModified() |
1178 | { | 1182 | { |
1179 | setModified( true ); | 1183 | setModified( true ); |
1180 | } | 1184 | } |
1181 | 1185 | ||
1182 | void KABCore::setModifiedWOrefresh() | 1186 | void KABCore::setModifiedWOrefresh() |
1183 | { | 1187 | { |
diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h index 47ea152..d89daee 100644 --- a/kaddressbook/kabcore.h +++ b/kaddressbook/kabcore.h | |||
@@ -248,16 +248,17 @@ class KABCore : public QWidget, public KSyncInterface | |||
248 | */ | 248 | */ |
249 | void setSearchFields( const KABC::Field::List &fields ); | 249 | void setSearchFields( const KABC::Field::List &fields ); |
250 | 250 | ||
251 | /** | 251 | /** |
252 | Search with the current search field for a contact, that matches | 252 | Search with the current search field for a contact, that matches |
253 | the given text, and selects it in the view. | 253 | the given text, and selects it in the view. |
254 | */ | 254 | */ |
255 | void incrementalSearch( const QString& text ); | 255 | void incrementalSearch( const QString& text ); |
256 | void incrementalSearchJump( const QString& text ); | ||
256 | 257 | ||
257 | /** | 258 | /** |
258 | Marks the address book as modified. | 259 | Marks the address book as modified. |
259 | */ | 260 | */ |
260 | void setModified(); | 261 | void setModified(); |
261 | /** | 262 | /** |
262 | Marks the address book as modified without refreshing the view. | 263 | Marks the address book as modified without refreshing the view. |
263 | */ | 264 | */ |