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 | |||
@@ -321,32 +321,37 @@ void ViewManager::editView() | |||
321 | // Set the proper filter in the view. By setting the combo | 321 | // Set the proper filter in the view. By setting the combo |
322 | // box, the activated slot will be called, which will push | 322 | // box, the activated slot will be called, which will push |
323 | // the filter to the view and refresh it. | 323 | // the filter to the view and refresh it. |
324 | if ( mActiveView->defaultFilterType() == KAddressBookView::None ) { | 324 | if ( mActiveView->defaultFilterType() == KAddressBookView::None ) { |
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 | ||
349 | 354 | ||
350 | if (QMessageBox::information( this, caption, | 355 | if (QMessageBox::information( this, caption, |
351 | text, | 356 | text, |
352 | i18n("Yes!"), i18n("No"), 0, 0 ) == 0) | 357 | i18n("Yes!"), i18n("No"), 0, 0 ) == 0) |