author | harlekin <harlekin> | 2003-04-10 20:33:24 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-04-10 20:33:24 (UTC) |
commit | 097706f265bf96a45932e227eb3d5d49bb3ba727 (patch) (side-by-side diff) | |
tree | ab816a1ce85920828d9b6e837467c9c25d76f79f | |
parent | 0740e2ef7132c53ebe29cc3b548647012bc75d05 (diff) | |
download | opie-097706f265bf96a45932e227eb3d5d49bb3ba727.zip opie-097706f265bf96a45932e227eb3d5d49bb3ba727.tar.gz opie-097706f265bf96a45932e227eb3d5d49bb3ba727.tar.bz2 |
have icons on the right side
-rw-r--r-- | core/pim/todo/mainwindow.cpp | 12 |
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 @@ -31,25 +31,25 @@ #include <qmenubar.h> #include <qmessagebox.h> #include <qtoolbar.h> #include <qpopupmenu.h> #include <qwidgetstack.h> #include <qaction.h> #include <qtimer.h> #include <qvbox.h> +#include <qlayout.h> #include <qlineedit.h> #include <qwhatsthis.h> #include <qpe/applnk.h> #include <qpe/config.h> #include <qpe/ir.h> #include <qpe/resource.h> #include <qpe/qpemessagebox.h> -#include <qpe/qpetoolbar.h> #include <opie/orecur.h> #include <opie/otodoaccessvcal.h> #include "quickeditimpl.h" #include "todotemplatemanager.h" #include "templateeditor.h" #include "tableview.h" @@ -206,41 +206,45 @@ void MainWindow::initConfig() { config.setGroup( "View" ); m_completed = config.readBoolEntry( "ShowComplete", TRUE ); m_curCat = config.readEntry( "Category", QString::null ); m_deadline = config.readBoolEntry( "ShowDeadLine", TRUE); m_overdue = config.readBoolEntry("ShowOverDue", FALSE ); m_quicktask = config.readBoolEntry("ShowQuickTask", TRUE); } 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 */ m_edit = new QPopupMenu( this ); m_options = new QPopupMenu( this ); m_catMenu = new QPopupMenu( this ); m_template = new QPopupMenu( this ); m_catMenu->setCheckable( TRUE ); m_template->setCheckable( TRUE ); connect(m_catMenu, SIGNAL(activated(int) ), this, SLOT(setCategory(int) ) ); connect(m_template, SIGNAL(activated(int) ), this, SLOT(slotNewFromTemplate(int) ) ); } 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." ) ); m_stack->addWidget( tableView, m_counter++ ); m_views.append( tableView ); m_curView = tableView; connectBase( tableView ); /* add QString type + QString configname to * the View menu |