author | zecke <zecke> | 2004-11-18 21:55:17 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-11-18 21:55:17 (UTC) |
commit | fdef8103e849b674c95d01785259e072bcfb5a4b (patch) (unidiff) | |
tree | 411432edf236f8858094598617383dea95c14c3a /core/pim/todo/mainwindow.cpp | |
parent | c94afa23120bb72709973ae4711106e6e502fe65 (diff) | |
download | opie-fdef8103e849b674c95d01785259e072bcfb5a4b.zip opie-fdef8103e849b674c95d01785259e072bcfb5a4b.tar.gz opie-fdef8103e849b674c95d01785259e072bcfb5a4b.tar.bz2 |
-Kill owarn statements from the code
-Kill magic numbers and use enum values
-rw-r--r-- | core/pim/todo/mainwindow.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index 2002e87..9424c23 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp | |||
@@ -298,3 +298,2 @@ QPopupMenu* MainWindow::contextMenu( int , bool recur ) { | |||
298 | QPopupMenu* MainWindow::options() { | 298 | QPopupMenu* MainWindow::options() { |
299 | owarn << "Options" << oendl; | ||
300 | return m_options; | 299 | return m_options; |
@@ -317,10 +316,8 @@ OPimTodoAccess::List MainWindow::sorted( bool asc, int sortOrder ) { | |||
317 | 316 | ||
318 | owarn << " Category " << cat << " " << m_curCat << oendl; | 317 | int filter = OPimTodoAccess::FilterCategory; |
319 | |||
320 | int filter = 1; | ||
321 | 318 | ||
322 | if (!m_completed ) | 319 | if (!m_completed ) |
323 | filter |= 4; | 320 | filter |= OPimTodoAccess::DoNotShowCompleted; |
324 | if (m_overdue) | 321 | if (m_overdue) |
325 | filter |= 2; | 322 | filter |= OPimTodoAccess::OnlyOverDue; |
326 | 323 | ||
@@ -376,3 +373,2 @@ void MainWindow::closeEvent( QCloseEvent* e ) { | |||
376 | if ( m_todoMgr.saveAll() ){ | 373 | if ( m_todoMgr.saveAll() ){ |
377 | owarn << "saved" << oendl; | ||
378 | quit = true; | 374 | quit = true; |
@@ -539,3 +535,2 @@ void MainWindow::setCategory( int c) { | |||
539 | 535 | ||
540 | owarn << "Iterating over cats " << c << oendl; | ||
541 | for ( unsigned int i = 1; i < m_catMenu->count(); i++ ) | 536 | for ( unsigned int i = 1; i < m_catMenu->count(); i++ ) |
@@ -685,3 +680,2 @@ void MainWindow::slotShow( int uid ) { | |||
685 | 680 | ||
686 | owarn << "slotShow" << oendl; | ||
687 | currentShow()->slotShow( event( uid ) ); | 681 | currentShow()->slotShow( event( uid ) ); |
@@ -744,3 +738,2 @@ void MainWindow::setReadAhead( uint count ) { | |||
744 | void MainWindow::slotQuickEntered() { | 738 | void MainWindow::slotQuickEntered() { |
745 | owarn << "entered" << oendl; | ||
746 | OPimTodo todo = quickEditor()->todo(); | 739 | OPimTodo todo = quickEditor()->todo(); |
@@ -791,3 +784,2 @@ void MainWindow::slotComplete( const OPimTodo& todo ) { | |||
791 | int dayDiff = to.dueDate().daysTo( date ); | 784 | int dayDiff = to.dueDate().daysTo( date ); |
792 | owarn << "day diff is " << dayDiff << oendl; | ||
793 | QDate inval; | 785 | QDate inval; |
@@ -955,3 +947,2 @@ namespace { | |||
955 | for ( it = als.begin(); it != als.end(); ++it ) { | 947 | for ( it = als.begin(); it != als.end(); ++it ) { |
956 | owarn << "Adding alarm for " << (*it).dateTime().toString() << oendl; | ||
957 | AlarmServer::addAlarm( (*it).dateTime(), "QPE/Application/todolist", "alarm(QDateTime,int)", uid ); | 948 | AlarmServer::addAlarm( (*it).dateTime(), "QPE/Application/todolist", "alarm(QDateTime,int)", uid ); |
@@ -963,3 +954,2 @@ namespace { | |||
963 | for ( it = als.begin(); it != als.end(); ++it ) { | 954 | for ( it = als.begin(); it != als.end(); ++it ) { |
964 | owarn << "Removinf alarm for " << (*it).dateTime().toString() << oendl; | ||
965 | AlarmServer::deleteAlarm( (*it).dateTime(), "QPE/Application/todolist", "alarm(QDateTime,int)", uid ); | 955 | AlarmServer::deleteAlarm( (*it).dateTime(), "QPE/Application/todolist", "alarm(QDateTime,int)", uid ); |