-rw-r--r-- | core/pim/todo/mainwindow.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index f0642c4..d552928 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp @@ -28,6 +28,7 @@ #include <unistd.h> +#include <opie2/odebug.h> #include <opie2/opimrecurrence.h> #include <opie2/opimnotifymanager.h> #include <opie2/otodoaccessvcal.h> @@ -295,7 +296,7 @@ QPopupMenu* MainWindow::contextMenu( int , bool recur ) { return menu; } QPopupMenu* MainWindow::options() { - qWarning("Options"); + Opie::Core::owarn << "Options" << oendl; return m_options; } QPopupMenu* MainWindow::edit() { @@ -314,7 +315,7 @@ OPimTodoAccess::List MainWindow::sorted( bool asc, int sortOrder ) { if ( m_curCat == QWidget::tr("Unfiled") ) cat = -1; - qWarning(" Category %d %s", cat, m_curCat.latin1() ); + Opie::Core::owarn << " Category " << cat << " " << m_curCat << oendl; int filter = 1; @@ -373,7 +374,7 @@ void MainWindow::closeEvent( QCloseEvent* e ) { } bool quit = false; if ( m_todoMgr.saveAll() ){ - qWarning("saved"); + Opie::Core::owarn << "saved" << oendl; quit = true; }else { if ( QMessageBox::critical( this, QWidget::tr("Out of space"), @@ -536,7 +537,7 @@ void MainWindow::setCategory( int c) { if ( c <= 0 ) return; - qWarning("Iterating over cats %d", c ); + Opie::Core::owarn << "Iterating over cats " << c << oendl; for ( unsigned int i = 1; i < m_catMenu->count(); i++ ) m_catMenu->setItemChecked(i, c == (int)i ); @@ -680,7 +681,7 @@ void MainWindow::slotShowDue(bool ov) { } void MainWindow::slotShow( int uid ) { if ( uid == 0 ) return; - qWarning("slotShow"); + Opie::Core::owarn << "slotShow" << oendl; currentShow()->slotShow( event( uid ) ); m_stack->raiseWidget( currentShow()->widget() ); } @@ -739,7 +740,7 @@ void MainWindow::setReadAhead( uint count ) { m_todoMgr.todoDB()->setReadAhead( count ); } void MainWindow::slotQuickEntered() { - qWarning("entered"); + Opie::Core::owarn << "entered" << oendl; OPimTodo todo = quickEditor()->todo(); if (todo.isEmpty() ) return; @@ -786,7 +787,7 @@ void MainWindow::slotComplete( const OPimTodo& todo ) { QDate date; if ( to2.recurrence().nextOcurrence( to2.dueDate().addDays(1), date ) ) { int dayDiff = to.dueDate().daysTo( date ); - qWarning("day diff is %d", dayDiff ); + Opie::Core::owarn << "day diff is " << dayDiff << oendl; QDate inval; /* generate a new uid for the old record */ to.setUid( 1 ); @@ -949,7 +950,7 @@ namespace { void addAlarms( const OPimNotifyManager::Alarms& als, int uid ) { OPimNotifyManager::Alarms::ConstIterator it; for ( it = als.begin(); it != als.end(); ++it ) { - qWarning("Adding alarm for %s", (*it).dateTime().toString().latin1() ); + Opie::Core::owarn << "Adding alarm for " << (*it).dateTime().toString() << oendl; AlarmServer::addAlarm( (*it).dateTime(), "QPE/Application/todolist", "alarm(QDateTime,int)", uid ); } @@ -957,7 +958,7 @@ namespace { void removeAlarms( const OPimNotifyManager::Alarms& als, int uid ) { OPimNotifyManager::Alarms::ConstIterator it; for ( it = als.begin(); it != als.end(); ++it ) { - qWarning("Removinf alarm for %s", (*it).dateTime().toString().latin1() ); + Opie::Core::owarn << "Removinf alarm for " << (*it).dateTime().toString() << oendl; AlarmServer::deleteAlarm( (*it).dateTime(), "QPE/Application/todolist", "alarm(QDateTime,int)", uid ); } } |