author | zecke <zecke> | 2002-06-17 15:41:06 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-06-17 15:41:06 (UTC) |
commit | 02e724757f13f40d85136c3a14e0a3788d28236e (patch) (side-by-side diff) | |
tree | e927455a1b5f0b5e6739f180106dbc98b60628c0 | |
parent | dcba3fed4f2abf001ced72b573f6e50f6b37e1e6 (diff) | |
download | opie-02e724757f13f40d85136c3a14e0a3788d28236e.zip opie-02e724757f13f40d85136c3a14e0a3788d28236e.tar.gz opie-02e724757f13f40d85136c3a14e0a3788d28236e.tar.bz2 |
Fool Qt and fool QtDesigner to unfuck the designer .ui *evilgrin*
-rw-r--r-- | core/pim/todo/mainwindow.cpp | 2 | ||||
-rw-r--r-- | core/pim/todo/todoentry.ui | 214 | ||||
-rw-r--r-- | core/pim/todo/todoentryimpl.cpp | 4 |
3 files changed, 132 insertions, 88 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index fa9c221..d419166 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp @@ -207,5 +207,5 @@ TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f ) : connect( a, SIGNAL( activated() ), this, SLOT( slotFind() ) ); - a->addTo( bar ); +// a->addTo( bar ); a->addTo( options ); options->insertSeparator(); diff --git a/core/pim/todo/todoentry.ui b/core/pim/todo/todoentry.ui index 9ffa89b..1091852 100644 --- a/core/pim/todo/todoentry.ui +++ b/core/pim/todo/todoentry.ui @@ -31,5 +31,5 @@ <x>0</x> <y>0</y> - <width>425</width> + <width>262</width> <height>321</height> </rect> @@ -45,23 +45,8 @@ <name>layoutSpacing</name> </property> - <widget> - <class>QLayoutWidget</class> - <property stdset="1"> - <name>name</name> - <cstring>Layout31</cstring> - </property> - <property stdset="1"> - <name>geometry</name> - <rect> - <x>1</x> - <y>6</y> - <width>240</width> - <height>310</height> - </rect> - </property> <grid> <property stdset="1"> <name>margin</name> - <number>0</number> + <number>11</number> </property> <property stdset="1"> @@ -91,4 +76,11 @@ </property> <property stdset="1"> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + </sizepolicy> + </property> + <property stdset="1"> <name>text</name> <string>Progress:</string> @@ -138,4 +130,11 @@ </property> <property stdset="1"> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + </sizepolicy> + </property> + <property stdset="1"> <name>maximumSize</name> <size> @@ -147,50 +146,4 @@ </hbox> </widget> - <widget row="3" column="0" > - <class>QLayoutWidget</class> - <property stdset="1"> - <name>name</name> - <cstring>Layout18</cstring> - </property> - <hbox> - <property stdset="1"> - <name>margin</name> - <number>0</number> - </property> - <property stdset="1"> - <name>spacing</name> - <number>6</number> - </property> - <widget> - <class>QLabel</class> - <property stdset="1"> - <name>name</name> - <cstring>TextLabel3</cstring> - </property> - <property stdset="1"> - <name>frameShape</name> - <enum>NoFrame</enum> - </property> - <property stdset="1"> - <name>text</name> - <string>Category:</string> - </property> - </widget> - <widget> - <class>CategorySelect</class> - <property stdset="1"> - <name>name</name> - <cstring>comboCategory</cstring> - </property> - <property stdset="1"> - <name>minimumSize</name> - <size> - <width>60</width> - <height>0</height> - </size> - </property> - </widget> - </hbox> - </widget> <widget row="0" column="0" > <class>QLayoutWidget</class> @@ -215,4 +168,11 @@ </property> <property stdset="1"> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + </sizepolicy> + </property> + <property stdset="1"> <name>text</name> <string>Priority:</string> @@ -258,5 +218,5 @@ <name>sizePolicy</name> <sizepolicy> - <hsizetype>7</hsizetype> + <hsizetype>0</hsizetype> <vsizetype>0</vsizetype> </sizepolicy> @@ -269,11 +229,74 @@ </hbox> </widget> - <widget row="5" column="0" > - <class>QMultiLineEdit</class> + <widget row="4" column="0" > + <class>QLayoutWidget</class> <property stdset="1"> <name>name</name> - <cstring>txtTodo</cstring> + <cstring>Layout30</cstring> + </property> + <hbox> + <property stdset="1"> + <name>margin</name> + <number>0</number> + </property> + <property stdset="1"> + <name>spacing</name> + <number>6</number> + </property> + <widget> + <class>QLabel</class> + <property stdset="1"> + <name>name</name> + <cstring>TextLabel1</cstring> + </property> + <property stdset="1"> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + </sizepolicy> + </property> + <property stdset="1"> + <name>text</name> + <string>Summary:</string> </property> </widget> + <widget> + <class>QLineEdit</class> + <property stdset="1"> + <name>name</name> + <cstring>lneSum</cstring> + </property> + </widget> + <widget> + <class>OClickableLabel</class> + <property stdset="1"> + <name>name</name> + <cstring>lblDown</cstring> + </property> + <property stdset="1"> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + </sizepolicy> + </property> + <property stdset="1"> + <name>minimumSize</name> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + <property stdset="1"> + <name>maximumSize</name> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </widget> + </hbox> + </widget> <widget row="1" column="0" > <class>QLayoutWidget</class> @@ -330,9 +353,23 @@ </hbox> </widget> - <widget row="4" column="0" > + <widget row="5" column="0" > + <class>QMultiLineEdit</class> + <property stdset="1"> + <name>name</name> + <cstring>txtTodo</cstring> + </property> + <property stdset="1"> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>7</vsizetype> + </sizepolicy> + </property> + </widget> + <widget row="3" column="0" > <class>QLayoutWidget</class> <property stdset="1"> <name>name</name> - <cstring>Layout30</cstring> + <cstring>Layout33</cstring> </property> <hbox> @@ -349,35 +386,39 @@ <property stdset="1"> <name>name</name> - <cstring>TextLabel1</cstring> + <cstring>TextLabel3</cstring> </property> <property stdset="1"> - <name>text</name> - <string>Summary:</string> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>0</vsizetype> + </sizepolicy> </property> - </widget> - <widget> - <class>QLineEdit</class> <property stdset="1"> - <name>name</name> - <cstring>lneSum</cstring> + <name>frameShape</name> + <enum>NoFrame</enum> + </property> + <property stdset="1"> + <name>text</name> + <string>Category:</string> </property> </widget> <widget> - <class>OClickableLabel</class> + <class>CategorySelect</class> <property stdset="1"> <name>name</name> - <cstring>lblDown</cstring> + <cstring>comboCategory</cstring> </property> <property stdset="1"> - <name>minimumSize</name> - <size> - <width>20</width> - <height>20</height> - </size> + <name>sizePolicy</name> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>0</vsizetype> + </sizepolicy> </property> <property stdset="1"> - <name>maximumSize</name> + <name>minimumSize</name> <size> - <width>20</width> + <width>60</width> <height>20</height> </size> @@ -388,5 +429,4 @@ </grid> </widget> -</widget> <customwidgets> <customwidget> diff --git a/core/pim/todo/todoentryimpl.cpp b/core/pim/todo/todoentryimpl.cpp index dd01130..6af229c 100644 --- a/core/pim/todo/todoentryimpl.cpp +++ b/core/pim/todo/todoentryimpl.cpp @@ -34,4 +34,5 @@ #include <qpe/palmtoprecord.h> +#include <qlayout.h> #include <qmessagebox.h> #include <qpopupmenu.h> @@ -91,4 +92,7 @@ NewTaskDialog::NewTaskDialog( int id, QWidget* parent, const char* name, bool m void NewTaskDialog::init() { + if( layout() != 0 ){ + layout()->setMargin( 0 ); + } QPopupMenu *m1 = new QPopupMenu( this ); picker = new DateBookMonth( m1, 0, TRUE ); |