summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -70,7 +70,8 @@ using namespace Todo;
MainWindow::MainWindow( QWidget* parent,
const char* name, WFlags )
- : Opie::OPimMainWindow( "Todolist", tr( "Todo List" ), "Todo List", tr( "Task" ), "todo",
+ : Opie::OPimMainWindow( "Todolist", "Todo List", tr( "Task" ), "todo",
parent, name, WType_TopLevel | WStyle_ContextHelp )
{
+ setCaption( tr( "Todo List" ) );
if (!name)
setName("todo window");
@@ -92,5 +93,5 @@ MainWindow::MainWindow( QWidget* parent,
QTimer::singleShot( 0, this, SLOT(initStuff()) );
}
-void MainWindow::initStuff() {
+void MainWindow::initStuff() {
m_todoMgr.load();
setViewCategory( m_curCat );
@@ -100,14 +101,14 @@ void MainWindow::initActions() {
// Insert Task menu items
QActionGroup *items = new QActionGroup( this, QString::null, false );
-
+
m_deleteCompleteAction = new QAction( QString::null, QWidget::tr( "Delete completed" ),
0, items, 0 );
connect( m_deleteCompleteAction, SIGNAL(activated()), this, SLOT(slotDeleteCompleted()) );
- insertItemMenuItems( items );
+ insertItemMenuItems( items );
// Insert View menu items
items = new QActionGroup( this, QString::null, false );
-
+
m_completedAction = new QAction( QString::null, QWidget::tr("Show completed tasks"),
0, items, 0, true );
@@ -129,5 +130,5 @@ void MainWindow::initActions() {
m_showQuickTaskAction->setOn( showQuickTask() );
connect( m_showQuickTaskAction, SIGNAL(toggled(bool)), this, SLOT(slotShowQuickTask(bool)) );
-
+
insertViewMenuItems( items );
}
@@ -148,5 +149,5 @@ void MainWindow::initUI() {
connect( this, SIGNAL(categorySelected(const QString&)),
this, SLOT(setCategory(const QString&)) );
-
+
// Create quick task toolbar
m_curQuick = new QuickEditImpl( this, m_quicktask );
@@ -200,5 +201,5 @@ OPimTodoAccess::List MainWindow::sorted( bool asc, int sortOrder ) {
if (m_overdue)
filter |= OPimTodoAccess::OnlyOverDue;
-
+
return m_todoMgr.sorted( asc, sortOrder, filter, cat );
}
@@ -210,5 +211,5 @@ OPimTodoAccess::List MainWindow::sorted( bool asc, int sortOrder, int addFilter)
if ( m_curCat == tr( "Unfiled" ) )
cat = -1;
-
+
return m_todoMgr.sorted(asc, sortOrder, addFilter, cat );
}
@@ -299,5 +300,5 @@ void MainWindow::slotItemNew() {
m_todoMgr.add( event );
currentView()->addEvent( event );
-
+
reloadCategories();
}
@@ -406,5 +407,5 @@ void MainWindow::setCategory( const QString &category ) {
if ( m_curCat == tr( "All" ) )
m_curCat = QString::null;
-
+
currentView()->setShowCategory( m_curCat );
raiseCurrentView();