author | eilers <eilers> | 2003-08-01 12:44:27 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-08-01 12:44:27 (UTC) |
commit | 79e5e877ad1a42cf6486db94a2face8f8107ff8c (patch) (side-by-side diff) | |
tree | 36dbcce317bfca3ad8775d864fef511d2ab3a769 /core/pim/today/plugins/addressbook/addresspluginwidget.cpp | |
parent | 6c715b67a8f0e32a4edca5be91332622834c8d91 (diff) | |
download | opie-79e5e877ad1a42cf6486db94a2face8f8107ff8c.zip opie-79e5e877ad1a42cf6486db94a2face8f8107ff8c.tar.gz opie-79e5e877ad1a42cf6486db94a2face8f8107ff8c.tar.bz2 |
Merging changes in BRANCH_1_0 into HEAD
Diffstat (limited to 'core/pim/today/plugins/addressbook/addresspluginwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/today/plugins/addressbook/addresspluginwidget.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp index 498de28..dad09db 100644 --- a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp +++ b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp @@ -64,6 +64,10 @@ void AddressBookPluginWidget::refresh( const OContactAccess* ) getAddress(); } +void AddressBookPluginWidget::reinitialize() { + readConfig(); + getAddress(); +} void AddressBookPluginWidget::readConfig() { Config cfg( "todayaddressplugin" ); @@ -98,10 +102,7 @@ void AddressBookPluginWidget::getAddress() { QString output; // Check whether the database provide the search option.. - // The following if-statement was replaced due to a bug in some - // implementations of libopie. The replacement should work everywhere..(eilers) - // if ( !m_contactdb->hasQuerySettings( OContactAccess::DateDiff ) ){ - if ( !( m_contactdb->querySettings() & OContactAccess::DateDiff ) ){ + if ( !m_contactdb->hasQuerySettings( OContactAccess::DateDiff ) ){ // Libopie seems to be old.. output = QObject::tr( "Database does not provide this search query ! Please upgrade libOpie !<br>" ); addressLabel->setText( output ); @@ -115,10 +116,10 @@ void AddressBookPluginWidget::getAddress() { qWarning("Searching from now (%s) until %s ! ", QDate::currentDate().toString().latin1(), lookAheadDate.toString().latin1() ); + OContact querybirthdays; querybirthdays.setBirthday( lookAheadDate ); - m_list = m_contactdb->queryByExample( querybirthdays, OContactAccess::DateDiff ); if ( m_list.count() > 0 ){ |