author | drw <drw> | 2005-03-16 17:45:28 (UTC) |
---|---|---|
committer | drw <drw> | 2005-03-16 17:45:28 (UTC) |
commit | 44209002d51056e0d198b63463ebc686b41e8cd8 (patch) (unidiff) | |
tree | d61069f16d8382959065cf7fe43d4e68ad448daf /core/pim/addressbook/addressbook.cpp | |
parent | d16a2a4e0617f21cba0e399dbe5ffa17d76886b9 (diff) | |
download | opie-44209002d51056e0d198b63463ebc686b41e8cd8.zip opie-44209002d51056e0d198b63463ebc686b41e8cd8.tar.gz opie-44209002d51056e0d198b63463ebc686b41e8cd8.tar.bz2 |
Fixed: 1. Category handling - all other apps and libopie2 use -1 for unfiled and 0 for all, addressbook flipped them, 2. Letter picker record selection, 3. sort resulting records after letter picker selected them
Diffstat (limited to 'core/pim/addressbook/addressbook.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index 6984501..faae0a9 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp | |||
@@ -833,50 +833,53 @@ void AddressbookWindow::slotSave() | |||
833 | 833 | ||
834 | 834 | ||
835 | void AddressbookWindow::slotNotFound() | 835 | void AddressbookWindow::slotNotFound() |
836 | { | 836 | { |
837 | odebug << "Got not found signal!" << oendl; | 837 | odebug << "Got not found signal!" << oendl; |
838 | QMessageBox::information( this, tr( "Not Found" ), | 838 | QMessageBox::information( this, tr( "Not Found" ), |
839 | "<qt>" + tr( "Unable to find a contact for this search pattern!" ) + "</qt>" ); | 839 | "<qt>" + tr( "Unable to find a contact for this search pattern!" ) + "</qt>" ); |
840 | 840 | ||
841 | 841 | ||
842 | } | 842 | } |
843 | void AddressbookWindow::slotWrapAround() | 843 | void AddressbookWindow::slotWrapAround() |
844 | { | 844 | { |
845 | odebug << "Got wrap signal!" << oendl; | 845 | odebug << "Got wrap signal!" << oendl; |
846 | // if ( doNotifyWrapAround ) | 846 | // if ( doNotifyWrapAround ) |
847 | // QMessageBox::information( this, tr( "End of list" ), | 847 | // QMessageBox::information( this, tr( "End of list" ), |
848 | // tr( "End of list. Wrap around now...!" ) + "\n" ); | 848 | // tr( "End of list. Wrap around now...!" ) + "\n" ); |
849 | 849 | ||
850 | } | 850 | } |
851 | 851 | ||
852 | void AddressbookWindow::slotSetCategory( const QString &category ) | 852 | void AddressbookWindow::slotSetCategory( const QString &category ) |
853 | { | 853 | { |
854 | odebug << "void AddressbookWindow::slotSetCategory( " << category << " )" << oendl; | 854 | odebug << "void AddressbookWindow::slotSetCategory( " << category << " )" << oendl; |
855 | 855 | ||
856 | // Tell the view about the selected category | 856 | // Tell the view about the selected category |
857 | m_config.setCategory( category ); | 857 | QString cat = category; |
858 | m_abView -> setShowByCategory( category ); | 858 | if ( cat == tr( "All" ) ) |
859 | cat = QString::null; | ||
860 | m_config.setCategory( cat ); | ||
861 | m_abView -> setShowByCategory( cat ); | ||
859 | } | 862 | } |
860 | 863 | ||
861 | void AddressbookWindow::slotViewSwitched( int view ) | 864 | void AddressbookWindow::slotViewSwitched( int view ) |
862 | { | 865 | { |
863 | odebug << "void AddressbookWindow::slotViewSwitched( " << view << " )" << oendl; | 866 | odebug << "void AddressbookWindow::slotViewSwitched( " << view << " )" << oendl; |
864 | 867 | ||
865 | // Tell the view about the selected view | 868 | // Tell the view about the selected view |
866 | m_abView -> setShowToView ( (AbView::Views) view ); | 869 | m_abView -> setShowToView ( (AbView::Views) view ); |
867 | active_view = view; | 870 | active_view = view; |
868 | } | 871 | } |
869 | 872 | ||
870 | 873 | ||
871 | void AddressbookWindow::slotListView() | 874 | void AddressbookWindow::slotListView() |
872 | { | 875 | { |
873 | slotViewSwitched( AbView::TableView ); | 876 | slotViewSwitched( AbView::TableView ); |
874 | } | 877 | } |
875 | 878 | ||
876 | void AddressbookWindow::slotCardView() | 879 | void AddressbookWindow::slotCardView() |
877 | { | 880 | { |
878 | slotViewSwitched( AbView::CardView ); | 881 | slotViewSwitched( AbView::CardView ); |
879 | } | 882 | } |
880 | 883 | ||
881 | void AddressbookWindow::slotSetLetter( char c ) { | 884 | void AddressbookWindow::slotSetLetter( char c ) { |
882 | 885 | ||