Diffstat (limited to 'core/pim/todo/quickeditimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/quickeditimpl.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/core/pim/todo/quickeditimpl.cpp b/core/pim/todo/quickeditimpl.cpp index cadec03..7664ee4 100644 --- a/core/pim/todo/quickeditimpl.cpp +++ b/core/pim/todo/quickeditimpl.cpp | |||
@@ -1,8 +1,9 @@ | |||
1 | #include <qaction.h> | 1 | #include <qaction.h> |
2 | #include <qlineedit.h> | 2 | #include <qlineedit.h> |
3 | #include <qwhatsthis.h> | ||
3 | 4 | ||
4 | #include <qpe/resource.h> | 5 | #include <qpe/resource.h> |
5 | 6 | ||
6 | #include <opie/oclickablelabel.h> | 7 | #include <opie/oclickablelabel.h> |
7 | 8 | ||
8 | #include "mainwindow.h" | 9 | #include "mainwindow.h" |
@@ -15,34 +16,37 @@ QuickEditImpl::QuickEditImpl( QWidget* parent, bool visible ) | |||
15 | 16 | ||
16 | // Load priority icons | 17 | // Load priority icons |
17 | // TODO - probably should be done globally somewhere else, see also tableview.cpp/h | 18 | // TODO - probably should be done globally somewhere else, see also tableview.cpp/h |
18 | priority1 = Resource::loadPixmap( "todo/priority1" ); | 19 | priority1 = Resource::loadPixmap( "todo/priority1" ); |
19 | priority3 = Resource::loadPixmap( "todo/priority3" ); | 20 | priority3 = Resource::loadPixmap( "todo/priority3" ); |
20 | priority5 = Resource::loadPixmap( "todo/priority5" ); | 21 | priority5 = Resource::loadPixmap( "todo/priority5" ); |
21 | 22 | ||
22 | |||
23 | // TODO - come up with icons and replace text priority values | ||
24 | m_lbl = new OClickableLabel( this ); | 23 | m_lbl = new OClickableLabel( this ); |
25 | m_lbl->setMinimumWidth(15); | 24 | m_lbl->setMinimumWidth( 15 ); |
26 | m_lbl->setPixmap( priority3 ); | 25 | m_lbl->setPixmap( priority3 ); |
27 | connect(m_lbl, SIGNAL(clicked() ), this, SLOT(slotPrio()) ); | 26 | connect(m_lbl, SIGNAL(clicked() ), this, SLOT(slotPrio()) ); |
27 | QWhatsThis::add( m_lbl, tr( "Click here to set the priority of new task.\n\nThis area is called the quick task bar.\n\nIt allows you to quickly add a new task to your list. This area can be shown or hidden by selecting Options->'Show quick task bar' from the menu above." ) ); | ||
28 | 28 | ||
29 | m_edit = new QLineEdit( this ); | 29 | m_edit = new QLineEdit( this ); |
30 | setStretchableWidget( m_edit ); | 30 | setStretchableWidget( m_edit ); |
31 | 31 | QWhatsThis::add( m_edit, tr( "Enter description of new task here.\n\nThis area is called the quick task bar.\n\nIt allows you to quickly add a new task to your list. This area can be shown or hidden by selecting Options->'Show quick task bar' from the menu above." ) ); | |
32 | |||
32 | QAction *a = new QAction( tr( "More" ), Resource::loadPixmap( "todo/more" ), QString::null, 0, this, 0 ); | 33 | QAction *a = new QAction( tr( "More" ), Resource::loadPixmap( "todo/more" ), QString::null, 0, this, 0 ); |
33 | connect( a, SIGNAL( activated() ), this, SLOT( slotMore() ) ); | 34 | connect( a, SIGNAL( activated() ), this, SLOT( slotMore() ) ); |
34 | a->addTo( this ); | 35 | a->addTo( this ); |
36 | a->setWhatsThis( tr( "Click here to enter additional information for new task.\n\nThis area is called the quick task bar.\n\nIt allows you to quickly add a new task to your list. This area can be shown or hidden by selecting Options->'Show quick task bar' from the menu above." ) ); | ||
35 | 37 | ||
36 | a = new QAction( tr( "Enter" ), Resource::loadPixmap( "enter" ), QString::null, 0, this, 0 ); | 38 | a = new QAction( tr( "Enter" ), Resource::loadPixmap( "enter" ), QString::null, 0, this, 0 ); |
37 | connect( a, SIGNAL( activated() ), this, SLOT( slotEnter() ) ); | 39 | connect( a, SIGNAL( activated() ), this, SLOT( slotEnter() ) ); |
38 | a->addTo( this ); | 40 | a->addTo( this ); |
41 | a->setWhatsThis( tr( "Click here to add new task.\n\nThis area is called the quick task bar.\n\nIt allows you to quickly add a new task to your list. This area can be shown or hidden by selecting Options->'Show quick task bar' from the menu above." ) ); | ||
39 | 42 | ||
40 | a = new QAction( tr( "Cancel" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); | 43 | a = new QAction( tr( "Cancel" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); |
41 | connect( a, SIGNAL( activated() ), this, SLOT( slotCancel() ) ); | 44 | connect( a, SIGNAL( activated() ), this, SLOT( slotCancel() ) ); |
42 | a->addTo( this ); | 45 | a->addTo( this ); |
46 | a->setWhatsThis( tr( "Click here to reset new task information.\n\nThis area is called the quick task bar.\n\nIt allows you to quickly add a new task to your list. This area can be shown or hidden by selecting Options->'Show quick task bar' from the menu above." ) ); | ||
43 | 47 | ||
44 | m_visible = visible; | 48 | m_visible = visible; |
45 | if ( !m_visible ) { | 49 | if ( !m_visible ) { |
46 | hide(); | 50 | hide(); |
47 | } | 51 | } |
48 | 52 | ||