-rw-r--r-- | core/pim/todo/taskeditorstatus.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/pim/todo/taskeditorstatus.cpp b/core/pim/todo/taskeditorstatus.cpp index 9a5fe7a..b11fdab 100644 --- a/core/pim/todo/taskeditorstatus.cpp +++ b/core/pim/todo/taskeditorstatus.cpp | |||
@@ -23,48 +23,51 @@ | |||
23 | If not, write to the Free Software Foundation, | 23 | If not, write to the Free Software Foundation, |
24 | Inc., 59 Temple Place - Suite 330, | 24 | Inc., 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "taskeditorstatus.h" | 29 | #include "taskeditorstatus.h" |
30 | 30 | ||
31 | #include <opie/otodo.h> | 31 | #include <opie/otodo.h> |
32 | #include <opie/opimmaintainer.h> | 32 | #include <opie/opimmaintainer.h> |
33 | #include <opie/opimstate.h> | 33 | #include <opie/opimstate.h> |
34 | 34 | ||
35 | #include <qpe/datebookmonth.h> | 35 | #include <qpe/datebookmonth.h> |
36 | #include <qpe/resource.h> | 36 | #include <qpe/resource.h> |
37 | #include <qpe/timestring.h> | 37 | #include <qpe/timestring.h> |
38 | 38 | ||
39 | #include <qcheckbox.h> | 39 | #include <qcheckbox.h> |
40 | #include <qcombobox.h> | 40 | #include <qcombobox.h> |
41 | #include <qlabel.h> | 41 | #include <qlabel.h> |
42 | #include <qlayout.h> | 42 | #include <qlayout.h> |
43 | #include <qscrollview.h> | 43 | #include <qscrollview.h> |
44 | #include <qtoolbutton.h> | 44 | #include <qtoolbutton.h> |
45 | #include <qwhatsthis.h> | 45 | #include <qwhatsthis.h> |
46 | 46 | ||
47 | // FIXME add the hack slots instead of setPopup!!!! | ||
48 | // drw you shouldn't have removed them | ||
49 | |||
47 | TaskEditorStatus::TaskEditorStatus( QWidget* parent, const char* name, WFlags fl ) | 50 | TaskEditorStatus::TaskEditorStatus( QWidget* parent, const char* name, WFlags fl ) |
48 | : QWidget( parent, name, fl ) | 51 | : QWidget( parent, name, fl ) |
49 | { | 52 | { |
50 | QDate curDate = QDate::currentDate(); | 53 | QDate curDate = QDate::currentDate(); |
51 | m_start = m_comp = m_due = curDate; | 54 | m_start = m_comp = m_due = curDate; |
52 | QString curDateStr = TimeString::longDateString( curDate ); | 55 | QString curDateStr = TimeString::longDateString( curDate ); |
53 | 56 | ||
54 | QVBoxLayout *vb = new QVBoxLayout( this ); | 57 | QVBoxLayout *vb = new QVBoxLayout( this ); |
55 | 58 | ||
56 | QScrollView *sv = new QScrollView( this ); | 59 | QScrollView *sv = new QScrollView( this ); |
57 | vb->addWidget( sv ); | 60 | vb->addWidget( sv ); |
58 | sv->setResizePolicy( QScrollView::AutoOneFit ); | 61 | sv->setResizePolicy( QScrollView::AutoOneFit ); |
59 | sv->setFrameStyle( QFrame::NoFrame ); | 62 | sv->setFrameStyle( QFrame::NoFrame ); |
60 | 63 | ||
61 | QWidget *container = new QWidget( sv->viewport() ); | 64 | QWidget *container = new QWidget( sv->viewport() ); |
62 | sv->addChild( container ); | 65 | sv->addChild( container ); |
63 | 66 | ||
64 | QGridLayout *layout = new QGridLayout( container, 7, 3, 4, 4 ); | 67 | QGridLayout *layout = new QGridLayout( container, 7, 3, 4, 4 ); |
65 | 68 | ||
66 | // Status | 69 | // Status |
67 | QLabel *label = new QLabel( tr( "Status:" ), container ); | 70 | QLabel *label = new QLabel( tr( "Status:" ), container ); |
68 | layout->addWidget( label, 0, 0 ); | 71 | layout->addWidget( label, 0, 0 ); |
69 | QWhatsThis::add( label, tr( "Click here to set the current status of this task." ) ); | 72 | QWhatsThis::add( label, tr( "Click here to set the current status of this task." ) ); |
70 | cmbStatus = new QComboBox( FALSE, container ); | 73 | cmbStatus = new QComboBox( FALSE, container ); |