Diffstat (limited to 'kaddressbook/viewmanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/viewmanager.cpp | 66 |
1 files changed, 34 insertions, 32 deletions
diff --git a/kaddressbook/viewmanager.cpp b/kaddressbook/viewmanager.cpp index e8c5b45..bec1862 100644 --- a/kaddressbook/viewmanager.cpp +++ b/kaddressbook/viewmanager.cpp @@ -103,3 +103,3 @@ void ViewManager::restoreSettings() QString _oldgroup = mCore->config()->group(); - + QDictIterator<KAddressBookView> it( mViewDict ); @@ -117,3 +117,3 @@ void ViewManager::saveSettings() QString _oldgroup = mCore->config()->group(); - + QDictIterator<KAddressBookView> it( mViewDict ); @@ -127,3 +127,3 @@ void ViewManager::saveSettings() } - + Filter::save( mCore->config(), "Filter", mFilterList ); @@ -168,3 +168,3 @@ KABC::Addressee::List ViewManager::selectedAddressees() const } -//US added another method with no parameter, since my moc compiler does not support default parameters. +//US added another method with no parameter, since my moc compiler does not support default parameters. void ViewManager::setSelected() @@ -208,3 +208,3 @@ void ViewManager::setActiveView( const QString &name ) QString type = config->readEntry( "Type", "Table" ); - + kdDebug(5720) << "ViewManager::setActiveView: creating view - " << name << endl; @@ -214,3 +214,3 @@ void ViewManager::setActiveView( const QString &name ) view = factory->view( mCore->addressBook(), mViewWidgetStack ); - + if ( view ) { @@ -227,6 +227,6 @@ void ViewManager::setActiveView( const QString &name ) SIGNAL( executed( const QString& ) ) ); - + connect( view, SIGNAL( deleteRequest( ) ), SIGNAL( deleteRequest( ) ) ); - + connect( view, SIGNAL( modified() ), SIGNAL( modified() ) ); @@ -237,3 +237,3 @@ void ViewManager::setActiveView( const QString &name ) } - + // If we found or created the view, raise it and refresh it @@ -258,3 +258,3 @@ void ViewManager::setActiveView( const QString &name ) //US qDebug("ViewManager::setActiveView 6" ); - + // Update the inc search widget to show the fields in the new active @@ -263,3 +263,4 @@ void ViewManager::setActiveView( const QString &name ) - mActiveView->refresh(); +//US performance optimization. setActiveFilter calls also mActiveView->refresh() +//US mActiveView->refresh(); @@ -273,3 +274,3 @@ void ViewManager::setActiveView( const QString &name ) -//US added another method with no parameter, since my moc compiler does not support default parameters. +//US added another method with no parameter, since my moc compiler does not support default parameters. void ViewManager::refreshView() @@ -305,3 +306,3 @@ void ViewManager::editView() -#ifndef DESKTOP_VERSION +#ifndef DESKTOP_VERSION //dlg.setMaximumSize( 640, 480 ); @@ -310,5 +311,5 @@ void ViewManager::editView() #endif - + KConfigGroupSaver saver( mCore->config(), mActiveView->caption() ); - + dlg->restoreSettings( mCore->config() ); @@ -318,3 +319,3 @@ void ViewManager::editView() mActiveView->readConfig( mCore->config() ); - + // Set the proper filter in the view. By setting the combo @@ -333,5 +334,6 @@ void ViewManager::editView() mCore->setSearchFields( mActiveView->fields() ); - mActiveView->refresh(); +//US performance optimization. setActiveFilter calls also mActiveView->refresh() +//US mActiveView->refresh(); } - + } @@ -346,3 +348,3 @@ void ViewManager::deleteView() - + if (QMessageBox::information( this, caption, @@ -397,3 +399,3 @@ void ViewManager::addView() KConfig *config = mCore->config(); - + config->deleteGroup( newName ); @@ -401,5 +403,5 @@ void ViewManager::addView() KConfigGroupSaver saver( config, newName ); - + config->writeEntry( "Type", type ); - + // try to set the active view @@ -455,3 +457,3 @@ void ViewManager::createViewFactories() #endif //KAB_EMBEDDED - + } @@ -463,3 +465,3 @@ void ViewManager::dropped( QDropEvent *e ) #ifndef KAB_EMBEDDED - + QString clipText, vcards; @@ -498,3 +500,3 @@ qDebug("ViewManager::dropped() has to be changed!!" ); #endif //KAB_EMBEDDED - + } @@ -593,3 +595,3 @@ void ViewManager::initActions() { -//US <ActionList name="view_loadedviews"/> +//US <ActionList name="view_loadedviews"/> //US <Separator/> @@ -601,3 +603,3 @@ void ViewManager::initActions() #endif //KAB_EMBEDDED - + mActionSelectView = new KSelectAction( i18n( "Select View" ), 0, mCore->actionCollection(), "select_view" ); @@ -609,3 +611,3 @@ void ViewManager::initActions() - + #ifdef KAB_EMBEDDED @@ -614,3 +616,3 @@ void ViewManager::initActions() #endif //KAB_EMBEDDED - + KAction *action; @@ -660,4 +662,4 @@ void ViewManager::initActions() - mActionSelectFilter = new KSelectAction( i18n( "Select Filter" ), "filter", mCore->actionCollection(), "select_filter" ); - + mActionSelectFilter = new KSelectAction( i18n( "Select Filter" ), "filter", mCore->actionCollection(), "select_filter" ); + #if KDE_VERSION >= 309 @@ -672,3 +674,3 @@ void ViewManager::initActions() #endif //KAB_EMBEDDED - + } |