From e06de75edc6c01d97248050030f197bd8f21fb10 Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 06 Sep 2003 06:31:13 +0000 Subject: -Switch to OWidgetStack actually only three lines touch by this -the really quit on closeEvent and don't wait for the last window -use setName eases debugging --- (limited to 'core') 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 @@ -53,6 +53,7 @@ #include #include #include +#include #include @@ -73,6 +74,9 @@ MainWindow::MainWindow( QWidget* parent, const char* name, WFlags ) : OPimMainWindow( "Todolist", parent, name, WType_TopLevel | WStyle_ContextHelp ) { + if (!name) + setName("todo window"); + m_syncing = false; m_showing = false; m_counter = 0; @@ -224,7 +228,7 @@ void MainWindow::initConfig() { } void MainWindow::initUI() { - m_stack = new QWidgetStack(this, "main stack"); + m_stack = new OWidgetStack(this, "main stack"); setCentralWidget( m_stack ); @@ -405,6 +409,7 @@ void MainWindow::closeEvent( QCloseEvent* e ) { /* save templates */ templateManager()->save(); e->accept(); + qApp->quit(); } } void MainWindow::populateTemplates() { 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 @@ -44,7 +44,7 @@ class QPopupMenu; class QMenuBar; class QToolBar; class QAction; -class QWidgetStack; +class OWidgetStack; class Ir; class QVBox; class QLineEdit; @@ -142,7 +142,7 @@ private slots: *m_showOverDueAction, *m_showQuickTaskAction, *m_effectiveAction; - QWidgetStack *m_stack; + OWidgetStack *m_stack; QPopupMenu* m_catMenu, *m_edit, *m_options, 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 @@ -85,6 +85,7 @@ void TableView::initConfig() { TableView::TableView( MainWindow* window, QWidget* wid ) : QTable( wid ), TodoView( window ) { + setName("TableView"); // Load icons // TODO - probably should be done globally somewhere else, // see also quickeditimpl.cpp/h, taskeditoroverview.cpp/h -- cgit v0.9.0.2