author | ulf69 <ulf69> | 2004-09-03 01:20:37 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-09-03 01:20:37 (UTC) |
commit | 7d5e6ab1868753f1f6a3b0831ba2e3c9d6ba411c (patch) (unidiff) | |
tree | cd2d7717d04533ab62cfc8435c7cafae8c82a8dc /kaddressbook/viewmanager.cpp | |
parent | 546841acf4cdfd83d576cdd2a5ddbcc94c3921f6 (diff) | |
download | kdepimpi-7d5e6ab1868753f1f6a3b0831ba2e3c9d6ba411c.zip kdepimpi-7d5e6ab1868753f1f6a3b0831ba2e3c9d6ba411c.tar.gz kdepimpi-7d5e6ab1868753f1f6a3b0831ba2e3c9d6ba411c.tar.bz2 |
sourceforge 1014886: added configurationsettings for color and font of tableview
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 bec1862..45c7b55 100644 --- a/kaddressbook/viewmanager.cpp +++ b/kaddressbook/viewmanager.cpp | |||
@@ -325,24 +325,29 @@ void ViewManager::editView() | |||
325 | mActionSelectFilter->setCurrentItem( 0 ); | 325 | mActionSelectFilter->setCurrentItem( 0 ); |
326 | setActiveFilter( 0 ); | 326 | setActiveFilter( 0 ); |
327 | } else if ( mActiveView->defaultFilterType() == KAddressBookView::Active ) { | 327 | } else if ( mActiveView->defaultFilterType() == KAddressBookView::Active ) { |
328 | setActiveFilter( mActionSelectFilter->currentItem() ); | 328 | setActiveFilter( mActionSelectFilter->currentItem() ); |
329 | } else { | 329 | } else { |
330 | uint pos = filterPosition( mActiveView->defaultFilterName() ); | 330 | uint pos = filterPosition( mActiveView->defaultFilterName() ); |
331 | mActionSelectFilter->setCurrentItem( pos ); | 331 | mActionSelectFilter->setCurrentItem( pos ); |
332 | setActiveFilter( pos ); | 332 | setActiveFilter( pos ); |
333 | } | 333 | } |
334 | mCore->setSearchFields( mActiveView->fields() ); | 334 | mCore->setSearchFields( mActiveView->fields() ); |
335 | //US performance optimization. setActiveFilter calls also mActiveView->refresh() | 335 | //US performance optimization. setActiveFilter calls also mActiveView->refresh() |
336 | //US mActiveView->refresh(); | 336 | //US mActiveView->refresh(); |
337 | |||
338 | |||
339 | //US this is a bugfix, that we get notified if we change a views configuration | ||
340 | emit modified(); | ||
341 | |||
337 | } | 342 | } |
338 | 343 | ||
339 | } | 344 | } |
340 | delete dlg; | 345 | delete dlg; |
341 | } | 346 | } |
342 | 347 | ||
343 | void ViewManager::deleteView() | 348 | void ViewManager::deleteView() |
344 | { | 349 | { |
345 | QString text = i18n( "<qt>Are you sure that you want to delete the view <b>%1</b>?</qt>" ) | 350 | QString text = i18n( "<qt>Are you sure that you want to delete the view <b>%1</b>?</qt>" ) |
346 | .arg( mActiveView->caption() ); | 351 | .arg( mActiveView->caption() ); |
347 | QString caption = i18n( "Confirm Delete" ); | 352 | QString caption = i18n( "Confirm Delete" ); |
348 | 353 | ||