Diffstat (limited to 'kaddressbook/viewmanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/viewmanager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kaddressbook/viewmanager.cpp b/kaddressbook/viewmanager.cpp index c93d51a..c6baeac 100644 --- a/kaddressbook/viewmanager.cpp +++ b/kaddressbook/viewmanager.cpp | |||
@@ -537,25 +537,30 @@ void ViewManager::startDrag() | |||
537 | vcards.append( vcard ); | 537 | vcards.append( vcard ); |
538 | } | 538 | } |
539 | drag->addDragObject( new KVCardDrag( vcards.join( "\r\n" ), this ) ); | 539 | drag->addDragObject( new KVCardDrag( vcards.join( "\r\n" ), this ) ); |
540 | 540 | ||
541 | drag->setPixmap( KGlobal::iconLoader()->loadIcon( "vcard", KIcon::Desktop ) ); | 541 | drag->setPixmap( KGlobal::iconLoader()->loadIcon( "vcard", KIcon::Desktop ) ); |
542 | drag->dragCopy(); | 542 | drag->dragCopy(); |
543 | 543 | ||
544 | #else //KAB_EMBEDDED | 544 | #else //KAB_EMBEDDED |
545 | qDebug("ViewManager::startDrag() has to be changed!!" ); | 545 | qDebug("ViewManager::startDrag() has to be changed!!" ); |
546 | #endif //KAB_EMBEDDED | 546 | #endif //KAB_EMBEDDED |
547 | 547 | ||
548 | } | 548 | } |
549 | void ViewManager::doSearch( const QString& s,KABC::Field *field ) | ||
550 | { | ||
551 | if ( mActiveView ) | ||
552 | mActiveView->doSearch( s, field ); | ||
549 | 553 | ||
554 | } | ||
550 | void ViewManager::setActiveFilter( int index ) | 555 | void ViewManager::setActiveFilter( int index ) |
551 | { | 556 | { |
552 | Filter currentFilter; | 557 | Filter currentFilter; |
553 | 558 | ||
554 | if ( ( index - 1 ) < 0 ) | 559 | if ( ( index - 1 ) < 0 ) |
555 | currentFilter = Filter(); | 560 | currentFilter = Filter(); |
556 | else | 561 | else |
557 | currentFilter = mFilterList[ index - 1 ]; | 562 | currentFilter = mFilterList[ index - 1 ]; |
558 | 563 | ||
559 | // Check if we have a view. Since the filter combo is created before | 564 | // Check if we have a view. Since the filter combo is created before |
560 | // the view, this slot could be called before there is a valid view. | 565 | // the view, this slot could be called before there is a valid view. |
561 | if ( mActiveView ) { | 566 | if ( mActiveView ) { |