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
@@ -71,5 +71,6 @@ 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)
@@ -93,3 +94,3 @@ MainWindow::MainWindow( QWidget* parent,
}
-void MainWindow::initStuff() {
+void MainWindow::initStuff() {
m_todoMgr.load();
@@ -101,3 +102,3 @@ void MainWindow::initActions() {
QActionGroup *items = new QActionGroup( this, QString::null, false );
-
+
m_deleteCompleteAction = new QAction( QString::null, QWidget::tr( "Delete completed" ),
@@ -106,3 +107,3 @@ void MainWindow::initActions() {
- insertItemMenuItems( items );
+ insertItemMenuItems( items );
@@ -110,3 +111,3 @@ void MainWindow::initActions() {
items = new QActionGroup( this, QString::null, false );
-
+
m_completedAction = new QAction( QString::null, QWidget::tr("Show completed tasks"),
@@ -130,3 +131,3 @@ void MainWindow::initActions() {
connect( m_showQuickTaskAction, SIGNAL(toggled(bool)), this, SLOT(slotShowQuickTask(bool)) );
-
+
insertViewMenuItems( items );
@@ -149,3 +150,3 @@ void MainWindow::initUI() {
this, SLOT(setCategory(const QString&)) );
-
+
// Create quick task toolbar
@@ -201,3 +202,3 @@ OPimTodoAccess::List MainWindow::sorted( bool asc, int sortOrder ) {
filter |= OPimTodoAccess::OnlyOverDue;
-
+
return m_todoMgr.sorted( asc, sortOrder, filter, cat );
@@ -211,3 +212,3 @@ OPimTodoAccess::List MainWindow::sorted( bool asc, int sortOrder, int addFilter)
cat = -1;
-
+
return m_todoMgr.sorted(asc, sortOrder, addFilter, cat );
@@ -300,3 +301,3 @@ void MainWindow::slotItemNew() {
currentView()->addEvent( event );
-
+
reloadCategories();
@@ -407,3 +408,3 @@ void MainWindow::setCategory( const QString &category ) {
m_curCat = QString::null;
-
+
currentView()->setShowCategory( m_curCat );