summaryrefslogtreecommitdiff
path: root/core/pim/todo/mainwindow.cpp
Side-by-side diff
Diffstat (limited to 'core/pim/todo/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp
index 0ccf73e..d16d1ac 100644
--- a/core/pim/todo/mainwindow.cpp
+++ b/core/pim/todo/mainwindow.cpp
@@ -28,5 +28,4 @@
#include <unistd.h>
-#include <stdio.h>
#include <qmenubar.h>
@@ -39,4 +38,5 @@
#include <qvbox.h>
#include <qlineedit.h>
+#include <qwhatsthis.h>
#include <qpe/applnk.h>
@@ -64,7 +64,6 @@ using namespace Todo;
MainWindow::MainWindow( QWidget* parent,
const char* name )
- : OPimMainWindow("Todolist", parent, name)
+ : OPimMainWindow( "Todolist", parent, name, WType_TopLevel | WStyle_ContextHelp )
{
-
m_syncing = false;
m_counter = 0;
@@ -97,4 +96,5 @@ void MainWindow::initActions() {
connect(a, SIGNAL( activated() ),
this, SLOT( slotNew() ) );
+ a->setWhatsThis( tr( "Click here to create a new task." ) );
a->addTo(m_tool );
a->addTo(m_edit );
@@ -104,4 +104,5 @@ void MainWindow::initActions() {
connect(a, SIGNAL(activated() ),
this, SLOT( slotEdit() ) );
+ a->setWhatsThis( tr( "Click here to modify the current task." ) );
a->addTo( m_tool );
a->addTo( m_edit );
@@ -119,4 +120,5 @@ void MainWindow::initActions() {
connect(a, SIGNAL(activated() ),
this, SLOT(slotDelete() ) );
+ a->setWhatsThis( tr( "Click here to remove the current task." ) );
a->addTo( m_tool );
a->addTo( m_edit );
@@ -148,10 +150,9 @@ void MainWindow::initActions() {
if ( Ir::supported() ) {
- a = new QAction( tr( "Beam" ), Resource::loadPixmap( "beam" ),
- QString::null, 0, this, 0 );
- connect( a, SIGNAL( activated() ),
- this, SLOT( slotBeam() ) );
- a->addTo( m_edit );
- a->addTo( m_tool );
+ a = new QAction( tr( "Beam" ), Resource::loadPixmap( "beam" ), QString::null, 0, this, 0 );
+ connect( a, SIGNAL( activated() ), this, SLOT( slotBeam() ) );
+ a->setWhatsThis( tr( "Click here to send the current task to another device." ) );
+ a->addTo( m_edit );
+ a->addTo( m_tool );
}
@@ -237,4 +238,5 @@ void MainWindow::initUI() {
void MainWindow::initViews() {
TableView* tableView = new TableView( this, m_stack );
+ QWhatsThis::add( tableView, 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 );