-rw-r--r-- | core/pim/todo/mainwindow.cpp | 7 | ||||
-rw-r--r-- | core/pim/todo/mainwindow.h | 4 | ||||
-rw-r--r-- | core/pim/todo/tableview.cpp | 1 |
3 files changed, 9 insertions, 3 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index ecb4e40..ad7899f 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp @@ -54,4 +54,5 @@ #include <opie/opimnotifymanager.h> #include <opie/otodoaccessvcal.h> +#include <opie/owidgetstack.h> #include <opie/oapplicationfactory.h> @@ -74,4 +75,7 @@ MainWindow::MainWindow( QWidget* parent, : OPimMainWindow( "Todolist", parent, name, WType_TopLevel | WStyle_ContextHelp ) { + if (!name) + setName("todo window"); + m_syncing = false; m_showing = false; @@ -225,5 +229,5 @@ void MainWindow::initConfig() { void MainWindow::initUI() { - m_stack = new QWidgetStack(this, "main stack"); + m_stack = new OWidgetStack(this, "main stack"); setCentralWidget( m_stack ); @@ -406,4 +410,5 @@ void MainWindow::closeEvent( QCloseEvent* e ) { templateManager()->save(); e->accept(); + qApp->quit(); } } diff --git a/core/pim/todo/mainwindow.h b/core/pim/todo/mainwindow.h index bd341c2..fd0e1bd 100644 --- a/core/pim/todo/mainwindow.h +++ b/core/pim/todo/mainwindow.h @@ -45,5 +45,5 @@ class QMenuBar; class QToolBar; class QAction; -class QWidgetStack; +class OWidgetStack; class Ir; class QVBox; @@ -143,5 +143,5 @@ private slots: *m_showQuickTaskAction, *m_effectiveAction; - QWidgetStack *m_stack; + OWidgetStack *m_stack; QPopupMenu* m_catMenu, *m_edit, diff --git a/core/pim/todo/tableview.cpp b/core/pim/todo/tableview.cpp index 2e252d5..def0efb 100644 --- a/core/pim/todo/tableview.cpp +++ b/core/pim/todo/tableview.cpp @@ -86,4 +86,5 @@ TableView::TableView( MainWindow* window, QWidget* wid ) : QTable( wid ), TodoView( window ) { + setName("TableView"); // Load icons // TODO - probably should be done globally somewhere else, |