Diffstat (limited to 'core/pim/todo/todoentryimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/todo/todoentryimpl.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/pim/todo/todoentryimpl.cpp b/core/pim/todo/todoentryimpl.cpp index f8e2f4d..dd01130 100644 --- a/core/pim/todo/todoentryimpl.cpp +++ b/core/pim/todo/todoentryimpl.cpp | |||
@@ -18,18 +18,20 @@ | |||
18 | ** not clear to you. | 18 | ** not clear to you. |
19 | ** | 19 | ** |
20 | **********************************************************************/ | 20 | **********************************************************************/ |
21 | 21 | ||
22 | #include "todoentryimpl.h" | 22 | #include "todoentryimpl.h" |
23 | 23 | ||
24 | #include <opie/oclickablelabel.h> | ||
24 | #include <opie/todoevent.h> | 25 | #include <opie/todoevent.h> |
25 | #include <opie/tododb.h> | 26 | #include <opie/tododb.h> |
26 | 27 | ||
27 | #include <qpe/categoryselect.h> | 28 | #include <qpe/categoryselect.h> |
28 | #include <qpe/datebookmonth.h> | 29 | #include <qpe/datebookmonth.h> |
29 | #include <qpe/global.h> | 30 | #include <qpe/global.h> |
31 | #include <qpe/resource.h> | ||
30 | #include <qpe/imageedit.h> | 32 | #include <qpe/imageedit.h> |
31 | #include <qpe/timestring.h> | 33 | #include <qpe/timestring.h> |
32 | #include <qpe/palmtoprecord.h> | 34 | #include <qpe/palmtoprecord.h> |
33 | 35 | ||
34 | #include <qmessagebox.h> | 36 | #include <qmessagebox.h> |
35 | #include <qpopupmenu.h> | 37 | #include <qpopupmenu.h> |
@@ -96,12 +98,13 @@ void NewTaskDialog::init() | |||
96 | 98 | ||
97 | connect( picker, SIGNAL( dateClicked( int, int, int ) ), | 99 | connect( picker, SIGNAL( dateClicked( int, int, int ) ), |
98 | this, SLOT( dateChanged( int, int, int ) ) ); | 100 | this, SLOT( dateChanged( int, int, int ) ) ); |
99 | 101 | ||
100 | buttonDate->setText( TimeString::longDateString( date ) ); | 102 | buttonDate->setText( TimeString::longDateString( date ) ); |
101 | picker->setDate( date.year(), date.month(), date.day() ); | 103 | picker->setDate( date.year(), date.month(), date.day() ); |
104 | lblDown->setPixmap(Resource::loadPixmap("down") ); | ||
102 | } | 105 | } |
103 | 106 | ||
104 | /* | 107 | /* |
105 | * Destroys the object and frees any allocated resources | 108 | * Destroys the object and frees any allocated resources |
106 | */ | 109 | */ |
107 | NewTaskDialog::~NewTaskDialog() | 110 | NewTaskDialog::~NewTaskDialog() |
@@ -137,13 +140,17 @@ ToDoEvent NewTaskDialog::todoEntry() | |||
137 | todo.setDescription( txtTodo->text() ); | 140 | todo.setDescription( txtTodo->text() ); |
138 | todo.setSummary( lneSum->text() ); | 141 | todo.setSummary( lneSum->text() ); |
139 | QString text = cmbProg->currentText(); | 142 | QString text = cmbProg->currentText(); |
140 | todo.setProgress( text.remove( text.length()-1, 1 ).toUShort() ); | 143 | todo.setProgress( text.remove( text.length()-1, 1 ).toUShort() ); |
141 | return todo; | 144 | return todo; |
142 | } | 145 | } |
143 | 146 | void NewTaskDialog::slotCopy() | |
147 | { | ||
148 | txtTodo->clear(); | ||
149 | txtTodo->setText( lneSum->text() ); | ||
150 | } | ||
144 | 151 | ||
145 | /*! | 152 | /*! |
146 | 153 | ||
147 | */ | 154 | */ |
148 | 155 | ||
149 | void NewTaskDialog::accept() | 156 | void NewTaskDialog::accept() |