summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp
index 75da27c..9013522 100644
--- a/core/pim/todo/mainwindow.cpp
+++ b/core/pim/todo/mainwindow.cpp
@@ -71,5 +71,6 @@ MainWindow::MainWindow( QWidget* parent,
71 const char* name, WFlags ) 71 const char* name, WFlags )
72 : Opie::OPimMainWindow( "Todolist", tr( "Todo List" ), "Todo List", tr( "Task" ), "todo", 72 : Opie::OPimMainWindow( "Todolist", "Todo List", tr( "Task" ), "todo",
73 parent, name, WType_TopLevel | WStyle_ContextHelp ) 73 parent, name, WType_TopLevel | WStyle_ContextHelp )
74{ 74{
75 setCaption( tr( "Todo List" ) );
75 if (!name) 76 if (!name)
@@ -93,3 +94,3 @@ MainWindow::MainWindow( QWidget* parent,
93} 94}
94void MainWindow::initStuff() { 95void MainWindow::initStuff() {
95 m_todoMgr.load(); 96 m_todoMgr.load();
@@ -101,3 +102,3 @@ void MainWindow::initActions() {
101 QActionGroup *items = new QActionGroup( this, QString::null, false ); 102 QActionGroup *items = new QActionGroup( this, QString::null, false );
102 103
103 m_deleteCompleteAction = new QAction( QString::null, QWidget::tr( "Delete completed" ), 104 m_deleteCompleteAction = new QAction( QString::null, QWidget::tr( "Delete completed" ),
@@ -106,3 +107,3 @@ void MainWindow::initActions() {
106 107
107 insertItemMenuItems( items ); 108 insertItemMenuItems( items );
108 109
@@ -110,3 +111,3 @@ void MainWindow::initActions() {
110 items = new QActionGroup( this, QString::null, false ); 111 items = new QActionGroup( this, QString::null, false );
111 112
112 m_completedAction = new QAction( QString::null, QWidget::tr("Show completed tasks"), 113 m_completedAction = new QAction( QString::null, QWidget::tr("Show completed tasks"),
@@ -130,3 +131,3 @@ void MainWindow::initActions() {
130 connect( m_showQuickTaskAction, SIGNAL(toggled(bool)), this, SLOT(slotShowQuickTask(bool)) ); 131 connect( m_showQuickTaskAction, SIGNAL(toggled(bool)), this, SLOT(slotShowQuickTask(bool)) );
131 132
132 insertViewMenuItems( items ); 133 insertViewMenuItems( items );
@@ -149,3 +150,3 @@ void MainWindow::initUI() {
149 this, SLOT(setCategory(const QString&)) ); 150 this, SLOT(setCategory(const QString&)) );
150 151
151 // Create quick task toolbar 152 // Create quick task toolbar
@@ -201,3 +202,3 @@ OPimTodoAccess::List MainWindow::sorted( bool asc, int sortOrder ) {
201 filter |= OPimTodoAccess::OnlyOverDue; 202 filter |= OPimTodoAccess::OnlyOverDue;
202 203
203 return m_todoMgr.sorted( asc, sortOrder, filter, cat ); 204 return m_todoMgr.sorted( asc, sortOrder, filter, cat );
@@ -211,3 +212,3 @@ OPimTodoAccess::List MainWindow::sorted( bool asc, int sortOrder, int addFilter)
211 cat = -1; 212 cat = -1;
212 213
213 return m_todoMgr.sorted(asc, sortOrder, addFilter, cat ); 214 return m_todoMgr.sorted(asc, sortOrder, addFilter, cat );
@@ -300,3 +301,3 @@ void MainWindow::slotItemNew() {
300 currentView()->addEvent( event ); 301 currentView()->addEvent( event );
301 302
302 reloadCategories(); 303 reloadCategories();
@@ -407,3 +408,3 @@ void MainWindow::setCategory( const QString &category ) {
407 m_curCat = QString::null; 408 m_curCat = QString::null;
408 409
409 currentView()->setShowCategory( m_curCat ); 410 currentView()->setShowCategory( m_curCat );