-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 | |||
@@ -1017,34 +1017,34 @@ void AddressbookWindow::slotCardView() | |||
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() ) { |