-rw-r--r-- | core/pim/addressbook/abview.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/core/pim/addressbook/abview.cpp b/core/pim/addressbook/abview.cpp index 7226e82..161b163 100644 --- a/core/pim/addressbook/abview.cpp +++ b/core/pim/addressbook/abview.cpp @@ -58,5 +58,5 @@ AbView::AbView ( QWidget* parent, const QValueList<int>& ordered ): m_viewStack = new QWidgetStack( this ); vb->addWidget( m_viewStack ); - + // Creat TableView QVBox* tableBox = new QVBox( m_viewStack ); @@ -74,6 +74,6 @@ AbView::AbView ( QWidget* parent, const QValueList<int>& ordered ): // Connect views to me - connect ( m_abTable, SIGNAL( signalSwitch( void ) ), - this, SLOT( slotSwitch( void ) ) ); + connect ( m_abTable, SIGNAL( signalSwitch( void ) ), + this, SLOT( slotSwitch( void ) ) ); connect ( m_ablabel, SIGNAL( signalOkPressed( void ) ), this, SLOT( slotSwitch( void ) ) ); @@ -106,5 +106,5 @@ void AbView::addEntry( const OContact &newContact ) m_contactdb->add ( newContact ); load(); - + } void AbView::removeEntry( const int UID ) @@ -152,5 +152,5 @@ void AbView::load() // Letter Search is stopped at this place emit signalClearLetterPicker(); - + if ( m_inPersonal ) m_list = m_contactdb->allRecords(); @@ -162,6 +162,6 @@ void AbView::load() qWarning ("Number of contacts: %d", m_list.count()); - updateView( true ); - + updateView( true ); + } @@ -197,5 +197,5 @@ void AbView::setShowByCategory( const QString& cat ) m_curr_category = intCat; emit signalClearLetterPicker(); - + load(); } @@ -241,5 +241,5 @@ void AbView::setListOrder( const QValueList<int>& ordered ) -QString AbView::showCategory() const +QString AbView::showCategory() const { return mCat.label( "Contacts", m_curr_category ); @@ -260,5 +260,5 @@ void AbView::showPersonal( bool personal ) m_storedDB = m_contactdb; - OContactAccessBackend* vcard_backend = new OContactAccessBackend_VCard( QString::null, + OContactAccessBackend* vcard_backend = new OContactAccessBackend_VCard( QString::null, addressbookPersonalVCardName() ); m_contactdb = new OContactAccess ( "addressbook", QString::null , vcard_backend, true ); @@ -266,5 +266,5 @@ void AbView::showPersonal( bool personal ) m_inPersonal = true; m_curr_View = CardView; - + }else{ @@ -281,10 +281,10 @@ void AbView::showPersonal( bool personal ) m_curr_View = TableView; m_inPersonal = false; - + } load(); } -QStringList AbView::categories() +QStringList AbView::categories() { mCat.load( categoryFileName() ); @@ -292,8 +292,8 @@ QStringList AbView::categories() return categoryList; } - -// BEGIN: Slots -void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, - bool , QString cat = QString::null ) + +// BEGIN: Slots +void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, + bool , QString cat ) { qWarning( "void AbView::slotDoFind" ); @@ -316,5 +316,5 @@ void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, r.setCaseSensitive( caseSensitive ); r.setWildcard( !useRegExp ); - + // Get all matching entries out of the database m_list = m_contactdb->matchRegexp( r ); @@ -330,5 +330,5 @@ void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, // we will not have a lot of matching entries.. clearForCategory(); - + // Now show all found entries updateView( true ); @@ -357,5 +357,5 @@ void AbView::slotSwitch(){ } updateView(); - + } @@ -370,5 +370,5 @@ void AbView::clearForCategory() if ( m_curr_category != -1 ){ for ( it = allList.begin(); it != allList.end(); ++it ){ - if ( !contactCompare( *it, m_curr_category ) ){ + if ( !contactCompare( *it, m_curr_category ) ){ qWarning("Removing %d", (*it).uid()); m_list.remove( (*it).uid() ); @@ -436,5 +436,5 @@ void AbView::updateView( bool newdata ) m_curr_Contact = 0; } - + // Feed all views with new lists if ( newdata ) @@ -461,5 +461,5 @@ void AbView::updateView( bool newdata ) break; } - + // Raise the current View m_viewStack -> raiseWidget( m_curr_View ); |