summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp
index 58981ca..77cbe17 100644
--- a/core/pim/todo/mainwindow.cpp
+++ b/core/pim/todo/mainwindow.cpp
@@ -37,4 +37,5 @@
#include <qtimer.h>
#include <qvbox.h>
+#include <qlayout.h>
#include <qlineedit.h>
#include <qwhatsthis.h>
@@ -45,5 +46,4 @@
#include <qpe/resource.h>
#include <qpe/qpemessagebox.h>
-#include <qpe/qpetoolbar.h>
#include <opie/orecur.h>
@@ -212,13 +212,16 @@ void MainWindow::initConfig() {
}
void MainWindow::initUI() {
+
m_stack = new QWidgetStack(this, "main stack");
+
setCentralWidget( m_stack );
setToolBarsMovable( FALSE );
- m_tool = new QPEToolBar( this );
- m_tool->setHorizontalStretchable( TRUE );
+ QToolBar *menubarholder = new QToolBar( this );
+ menubarholder->setHorizontalStretchable( TRUE );
+ m_bar = new QMenuBar( menubarholder );
- m_bar = new QMenuBar( m_tool );
+ m_tool = new QToolBar( this );
/** QPopupMenu */
@@ -237,4 +240,5 @@ void MainWindow::initUI() {
}
void MainWindow::initViews() {
+
TableView* tableView = new TableView( this, m_stack );
QWhatsThis::add( tableView, QWidget::tr( "This is a listing of all current tasks.\n\nThe list displays the following information:\n1. Completed - A green checkmark indicates task is completed. Click here to complete a task.\n2. Priority - a graphical representation of task priority. Double-click here to modify.\n3. Description - description of task. Click here to select the task.\n4. Deadline - shows when task is due. This column can be shown or hidden by selecting Options->'Show task deadlines' from the menu above." ) );