From 12e9ed4ac80ac7fa042059b48d7447db0e59a86c Mon Sep 17 00:00:00 2001 From: eilers Date: Thu, 02 Jan 2003 14:26:06 +0000 Subject: Letterpicker now works for lowercase names.. --- diff --git a/core/pim/addressbook/TODO b/core/pim/addressbook/TODO index df55b2d..1eb537f 100644 --- a/core/pim/addressbook/TODO +++ b/core/pim/addressbook/TODO @@ -15,10 +15,6 @@ Feature requests: Known Bugs: ----------- -- Language not English (tested with german opie-translation): - 1. Configure nicht übersetzt (alles leer). - 2. Contacteditor nur teilweise übersetzt. - 3. Kategorie-Picker geht nicht. Bugs but not in addressbook: @@ -36,6 +32,7 @@ ContactEditor: - Store last settings of combo-boxes - Category is on the wrong position after changing to personal and back to normal ( Temporarily workaround: Category is never deactivated.. :S ) + - Personal and Business Web-page is not editable Important: @@ -107,3 +104,7 @@ Fixed: - Fix start of opie-mail - Implement Button Pics - Add a dialog to accept and optionally edit received contacts by IRDA. +- Language not English (tested with german opie-translation): + 1. Configure nicht übersetzt (alles leer). + 2. Contacteditor nur teilweise übersetzt. + 3. Kategorie-Picker geht nicht. diff --git a/core/pim/addressbook/abview.cpp b/core/pim/addressbook/abview.cpp index 161b163..93e57ca 100644 --- a/core/pim/addressbook/abview.cpp +++ b/core/pim/addressbook/abview.cpp @@ -153,6 +153,7 @@ void AbView::load() emit signalClearLetterPicker(); if ( m_inPersonal ) + // VCard Backend does not sort.. m_list = m_contactdb->allRecords(); else{ m_list = m_contactdb->sorted( true, 0, 0, 0 ); @@ -225,8 +226,14 @@ void AbView::setShowByLetter( char c ) load(); return; }else{ + // If the current Backend is unable to solve the query, we will + // ignore the request .. + if ( ! m_contactdb->hasQuerySettings( OContactAccess::WildCards | OContactAccess::IgnoreCase ) ){ + return; + } + query.setLastName( QString("%1*").arg(c) ); - m_list = m_contactdb->queryByExample( query, OContactAccess::WildCards ); + m_list = m_contactdb->queryByExample( query, OContactAccess::WildCards | OContactAccess::IgnoreCase ); clearForCategory(); m_curr_Contact = 0; } -- cgit v0.9.0.2