author | mickeyl <mickeyl> | 2004-04-04 17:15:07 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-04-04 17:15:07 (UTC) |
commit | 2d87ac4bb0d799d15c7ea96ea444e5de617abdef (patch) (side-by-side diff) | |
tree | b55dd8701350da302e11ca6aad174a57fd3aa53b | |
parent | b49dbce74737411736d63358319e709d1af810bb (diff) | |
download | opie-2d87ac4bb0d799d15c7ea96ea444e5de617abdef.zip opie-2d87ac4bb0d799d15c7ea96ea444e5de617abdef.tar.gz opie-2d87ac4bb0d799d15c7ea96ea444e5de617abdef.tar.bz2 |
fix odebug usage
-rw-r--r-- | core/pim/today/plugins/addressbook/addresspluginwidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp index b48d4a7..5de6b0a 100644 --- a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp +++ b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp @@ -38,33 +38,33 @@ AddressBookPluginWidget::AddressBookPluginWidget( QWidget *parent, const char* m_contactdb = new Opie::OPimContactAccess("addressplugin"); connect( m_contactdb, SIGNAL( signalChanged(const Opie::OPimContactAccess*) ), this, SLOT( refresh(const Opie::OPimContactAccess*) ) ); readConfig(); getAddress(); } AddressBookPluginWidget::~AddressBookPluginWidget() { delete m_contactdb; } void AddressBookPluginWidget::refresh( const Opie::OPimContactAccess* ) { - Opie::Core::owarn << " AddressBookPluginWidget::Database was changed externally ! " << oendl; + oerr << " AddressBookPluginWidget::Database was changed externally ! " << oendl; m_contactdb->reload(); getAddress(); } void AddressBookPluginWidget::reinitialize() { readConfig(); getAddress(); } void AddressBookPluginWidget::readConfig() { Config cfg( "todayaddressplugin" ); cfg.setGroup( "config" ); m_maxLinesTask = cfg.readNumEntry( "maxlinestask", 5 ); m_maxCharClip = cfg.readNumEntry( "maxcharclip", 38 ); m_daysLookAhead = cfg.readNumEntry( "dayslookahead", 14 ); m_urgentDays = cfg.readNumEntry( "urgentdays", 7 ); @@ -92,33 +92,33 @@ void AddressBookPluginWidget::getAddress() { } QString output; // Check whether the database provide the search option.. if ( !m_contactdb->hasQuerySettings( Opie::OPimContactAccess::DateDiff ) ){ // Libopie seems to be old.. output = QObject::tr( "Database does not provide this search query ! Please upgrade libOpie !<br>" ); addressLabel->setText( output ); return; } // Define the query for birthdays and start search.. QDate lookAheadDate = QDate::currentDate().addDays( m_daysLookAhead ); int ammount = 0; if ( m_showBirthdays ){ - Opie::Core::owarn << "Searching from now (" << QDate::currentDate().toString() << ") until " + oerr << "Searching from now (" << QDate::currentDate().toString() << ") until " << lookAheadDate.toString() << " ! " << oendl; } if ( m_contactdb->hasQuerySettings( Opie::OPimContactAccess::DateDiff ) ){ Opie::OPimContact querybirthdays; querybirthdays.setBirthday( lookAheadDate ); m_list = m_contactdb->queryByExample( querybirthdays, Opie::OPimContactAccess::DateDiff ); if ( m_list.count() > 0 ){ output = "<font color=" + m_headlineColor + ">" + QObject::tr( "Next birthdays in <b> %1 </b> days:" ) .arg( m_daysLookAhead ) + "</font> <br>"; |