summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/abview.cpp
authoreilers <eilers>2002-11-30 18:13:34 (UTC)
committer eilers <eilers>2002-11-30 18:13:34 (UTC)
commit6afb59b5950c8fdd24dc93ac4ee370a3c8437f9a (patch) (side-by-side diff)
treea873946a9b52edaab8f374918c7e0b468c2353b3 /core/pim/addressbook/abview.cpp
parentfe672fd88ead7a987d66f03439eb860e67aeaca6 (diff)
downloadopie-6afb59b5950c8fdd24dc93ac4ee370a3c8437f9a.zip
opie-6afb59b5950c8fdd24dc93ac4ee370a3c8437f9a.tar.gz
opie-6afb59b5950c8fdd24dc93ac4ee370a3c8437f9a.tar.bz2
Fixed a lot of usability stuff .. Some minor bugs were fixed, too ..
Diffstat (limited to 'core/pim/addressbook/abview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/addressbook/abview.cpp29
1 files changed, 19 insertions, 10 deletions
diff --git a/core/pim/addressbook/abview.cpp b/core/pim/addressbook/abview.cpp
index 0f4bd5f..7226e82 100644
--- a/core/pim/addressbook/abview.cpp
+++ b/core/pim/addressbook/abview.cpp
@@ -126,11 +126,14 @@ OContact AbView::currentEntry()
{
+ OContact currentContact;
+
switch ( (int) m_curr_View ) {
case TableView:
- return ( m_abTable -> currentEntry() );
+ currentContact = m_abTable -> currentEntry();
break;
case CardView:
- return ( m_ablabel -> currentEntry() );
+ currentContact = m_ablabel -> currentEntry();
break;
}
- return OContact();
+ m_curr_Contact = currentContact.uid();
+ return currentContact;
}
@@ -148,8 +151,11 @@ void AbView::load()
+ // Letter Search is stopped at this place
+ emit signalClearLetterPicker();
+
if ( m_inPersonal )
m_list = m_contactdb->allRecords();
- else
+ else{
m_list = m_contactdb->sorted( true, 0, 0, 0 );
-
clearForCategory();
+ }
@@ -157,3 +163,3 @@ void AbView::load()
- updateView();
+ updateView( true );
@@ -226,3 +232,3 @@ void AbView::setShowByLetter( char c )
}
- updateView();
+ updateView( true );
}
@@ -327,3 +333,3 @@ void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp,
// Now show all found entries
- updateView();
+ updateView( true );
}
@@ -409,3 +415,3 @@ void AbView::updateListinViews()
-void AbView::updateView()
+void AbView::updateView( bool newdata )
{
@@ -418,2 +424,3 @@ void AbView::updateView()
// If we switching the view, we have to store some information
+ if ( !newdata ){
if ( m_list.count() ){
@@ -429,7 +436,9 @@ void AbView::updateView()
m_curr_Contact = 0;
+ }
// Feed all views with new lists
+ if ( newdata )
updateListinViews();
- // Inform the world that the view is changed
+ // Tell the world that the view is changed
if ( m_curr_View != m_prev_View )