From e9189f8d0cc46b0532fdcbcb2377ae3d108666d5 Mon Sep 17 00:00:00 2001 From: zecke Date: Wed, 20 Mar 2002 21:45:51 +0000 Subject: vCal Resource for the tododb --- (limited to 'core/pim') diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index fb85a09..6709811 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp @@ -18,6 +18,8 @@ ** **********************************************************************/ +#define QTOPIA_INTERNAL_FD + #include "mainwindow.h" #include "todoentryimpl.h" #include "todotable.h" @@ -122,6 +124,7 @@ TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f = 0 ) : this, SLOT( slotNew() ) ); a->addTo( bar ); a->addTo( edit ); + a = new QAction( tr( "Edit" ), Resource::loadIconSet( "edit" ), QString::null, 0, this, 0 ); connect( a, SIGNAL( activated() ), @@ -131,6 +134,7 @@ TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f = 0 ) : a->addTo( contextMenu ); a->setEnabled( FALSE ); editAction = a; + a = new QAction( tr( "Delete" ), Resource::loadIconSet( "trash" ), QString::null, 0, this, 0 ); connect( a, SIGNAL( activated() ), @@ -326,7 +330,7 @@ void TodoWindow::setCategory( int c ) catMenu->setItemChecked( i, c == (int)i ); if ( c == 1 ) { table->setShowCategory( QString::null ); - setCaption( tr("Todo") + " - " + tr( "All" ) ); + setCaption( tr("Todo") + " - " + tr( "All Categories" ) ); } else if ( c == (int)catMenu->count() - 1 ) { table->setShowCategory( tr( "Unfiled" ) ); setCaption( tr("Todo") + " - " + tr( "Unfiled" ) ); @@ -348,7 +352,7 @@ void TodoWindow::populateCategories() int id, rememberId; id = 1; - catMenu->insertItem( tr( "All" ), id++ ); + catMenu->insertItem( tr( "All Categories" ), id++ ); // catMenu->insertSeparator(); QStringList categories = table->categories(); categories.append( tr( "Unfiled" ) ); diff --git a/core/pim/todo/mainwindow.h b/core/pim/todo/mainwindow.h index f4fcd1b..856dcb4 100644 --- a/core/pim/todo/mainwindow.h +++ b/core/pim/todo/mainwindow.h @@ -1,7 +1,8 @@ /********************************************************************** + Copyright (C) 2002 Holger 'zecke' Freyther ** Copyright (C) 2000 Trolltech AS. All rights reserved. ** -** This file is part of Qtopia Environment. +** This file is part of Qtopia and Opi Environment. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software diff --git a/core/pim/todo/todoentryimpl.cpp b/core/pim/todo/todoentryimpl.cpp index 79206de..c957715 100644 --- a/core/pim/todo/todoentryimpl.cpp +++ b/core/pim/todo/todoentryimpl.cpp @@ -133,7 +133,7 @@ Task NewTaskDialog::todoEntry() void NewTaskDialog::accept() { QString strText = txtTodo->text(); - if ( !strText || strText == "") { + if ( strText.isEmpty() ) { // hmm... just decline it then, the user obviously didn't care about it QDialog::reject(); return; -- cgit v0.9.0.2