-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index 6819085..03c96c8 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp | |||
@@ -1009,49 +1009,49 @@ void AddressbookWindow::slotListView() | |||
1009 | { | 1009 | { |
1010 | slotViewSwitched( AbView::TableView ); | 1010 | slotViewSwitched( AbView::TableView ); |
1011 | } | 1011 | } |
1012 | 1012 | ||
1013 | void AddressbookWindow::slotCardView() | 1013 | void AddressbookWindow::slotCardView() |
1014 | { | 1014 | { |
1015 | slotViewSwitched( AbView::CardView ); | 1015 | slotViewSwitched( AbView::CardView ); |
1016 | } | 1016 | } |
1017 | 1017 | ||
1018 | void AddressbookWindow::slotSetLetter( char c ) { | 1018 | void AddressbookWindow::slotSetLetter( char c ) { |
1019 | 1019 | ||
1020 | m_abView->setShowByLetter( c, m_config.letterPickerSearch() ); | 1020 | m_abView->setShowByLetter( c, m_config.letterPickerSearch() ); |
1021 | 1021 | ||
1022 | } | 1022 | } |
1023 | 1023 | ||
1024 | 1024 | ||
1025 | void AddressbookWindow::populateCategories() | 1025 | void AddressbookWindow::populateCategories() |
1026 | { | 1026 | { |
1027 | catMenu->clear(); | 1027 | catMenu->clear(); |
1028 | 1028 | ||
1029 | int id, rememberId; | 1029 | int id, rememberId; |
1030 | id = 1; | 1030 | id = 1; |
1031 | rememberId = 0; | 1031 | rememberId = 0; |
1032 | 1032 | ||
1033 | catMenu->insertItem( Resource::loadPixmap( "datebook/weeklst" ), tr( "List" ), id++ ); | 1033 | catMenu->insertItem( Resource::loadPixmap( "addressbook/listview" ), tr( "List" ), id++ ); |
1034 | catMenu->insertItem( Resource::loadPixmap( "day" ), tr( "Cards" ), id++ ); | 1034 | catMenu->insertItem( Resource::loadPixmap( "addressbook/cardview" ), tr( "Cards" ), id++ ); |
1035 | // catMenu->insertItem( tr( "Personal" ), id++ ); | 1035 | // catMenu->insertItem( tr( "Personal" ), id++ ); |
1036 | catMenu->insertSeparator(); | 1036 | catMenu->insertSeparator(); |
1037 | 1037 | ||
1038 | catMenu->insertItem( tr( "All" ), id++ ); | 1038 | catMenu->insertItem( tr( "All" ), id++ ); |
1039 | QStringList categories = m_abView->categories(); | 1039 | QStringList categories = m_abView->categories(); |
1040 | categories.append( tr( "Unfiled" ) ); | 1040 | categories.append( tr( "Unfiled" ) ); |
1041 | for ( QStringList::Iterator it = categories.begin(); | 1041 | for ( QStringList::Iterator it = categories.begin(); |
1042 | it != categories.end(); ++it ) { | 1042 | it != categories.end(); ++it ) { |
1043 | catMenu->insertItem( *it, id ); | 1043 | catMenu->insertItem( *it, id ); |
1044 | if ( *it == m_abView -> showCategory() ) | 1044 | if ( *it == m_abView -> showCategory() ) |
1045 | rememberId = id; | 1045 | rememberId = id; |
1046 | ++id; | 1046 | ++id; |
1047 | } | 1047 | } |
1048 | 1048 | ||
1049 | 1049 | ||
1050 | if ( m_abView -> showCategory().isEmpty() ) { | 1050 | if ( m_abView -> showCategory().isEmpty() ) { |
1051 | slotSetCategory( 3 ); | 1051 | slotSetCategory( 3 ); |
1052 | } | 1052 | } |
1053 | else { | 1053 | else { |
1054 | slotSetCategory( rememberId ); | 1054 | slotSetCategory( rememberId ); |
1055 | } | 1055 | } |
1056 | } | 1056 | } |
1057 | 1057 | ||