Diffstat (limited to 'core/pim/todo/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/mainwindow.cpp | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index d552928..924fde1 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp @@ -61,6 +61,6 @@ -using namespace Opie::Core; +using Opie::Core::OApplicationFactory; OPIE_EXPORT_APP( OApplicationFactory<Todo::MainWindow> ) - using namespace Opie; +using namespace Opie; using namespace Todo; @@ -298,3 +298,3 @@ QPopupMenu* MainWindow::contextMenu( int , bool recur ) { QPopupMenu* MainWindow::options() { - Opie::Core::owarn << "Options" << oendl; + owarn << "Options" << oendl; return m_options; @@ -317,3 +317,3 @@ OPimTodoAccess::List MainWindow::sorted( bool asc, int sortOrder ) { - Opie::Core::owarn << " Category " << cat << " " << m_curCat << oendl; + owarn << " Category " << cat << " " << m_curCat << oendl; @@ -376,3 +376,3 @@ void MainWindow::closeEvent( QCloseEvent* e ) { if ( m_todoMgr.saveAll() ){ - Opie::Core::owarn << "saved" << oendl; + owarn << "saved" << oendl; quit = true; @@ -539,3 +539,3 @@ void MainWindow::setCategory( int c) { - Opie::Core::owarn << "Iterating over cats " << c << oendl; + owarn << "Iterating over cats " << c << oendl; for ( unsigned int i = 1; i < m_catMenu->count(); i++ ) @@ -602,13 +602,13 @@ void MainWindow::receiveFile( const QString& filename ) { - QString message = QWidget::tr("<P>%1 new tasks arrived.<p>Would you like to add them to your Todolist?").arg(list.count() ); + QString message = QWidget::tr("<P>%1 new tasks arrived.<p>Would you like to add them to your Todolist?").arg(list.count() ); - if ( QMessageBox::information(this, QWidget::tr("New Tasks"), - message, QMessageBox::Ok, - QMessageBox::Cancel ) == QMessageBox::Ok ) { - OPimTodoAccess::List::Iterator it; - for ( it = list.begin(); it != list.end(); ++it ) - m_todoMgr.add( (*it) ); + if ( QMessageBox::information(this, QWidget::tr("New Tasks"), + message, QMessageBox::Ok, + QMessageBox::Cancel ) == QMessageBox::Ok ) { + OPimTodoAccess::List::Iterator it; + for ( it = list.begin(); it != list.end(); ++it ) + m_todoMgr.add( (*it) ); - currentView()->updateView(); - } + currentView()->updateView(); + } } @@ -683,3 +683,5 @@ void MainWindow::slotShow( int uid ) { if ( uid == 0 ) return; - Opie::Core::owarn << "slotShow" << oendl; + + + owarn << "slotShow" << oendl; currentShow()->slotShow( event( uid ) ); @@ -742,3 +744,3 @@ void MainWindow::setReadAhead( uint count ) { void MainWindow::slotQuickEntered() { - Opie::Core::owarn << "entered" << oendl; + owarn << "entered" << oendl; OPimTodo todo = quickEditor()->todo(); @@ -789,3 +791,3 @@ void MainWindow::slotComplete( const OPimTodo& todo ) { int dayDiff = to.dueDate().daysTo( date ); - Opie::Core::owarn << "day diff is " << dayDiff << oendl; + owarn << "day diff is " << dayDiff << oendl; QDate inval; @@ -952,3 +954,3 @@ namespace { for ( it = als.begin(); it != als.end(); ++it ) { - Opie::Core::owarn << "Adding alarm for " << (*it).dateTime().toString() << oendl; + owarn << "Adding alarm for " << (*it).dateTime().toString() << oendl; AlarmServer::addAlarm( (*it).dateTime(), "QPE/Application/todolist", "alarm(QDateTime,int)", uid ); @@ -960,3 +962,3 @@ namespace { for ( it = als.begin(); it != als.end(); ++it ) { - Opie::Core::owarn << "Removinf alarm for " << (*it).dateTime().toString() << oendl; + owarn << "Removinf alarm for " << (*it).dateTime().toString() << oendl; AlarmServer::deleteAlarm( (*it).dateTime(), "QPE/Application/todolist", "alarm(QDateTime,int)", uid ); |