From 02e724757f13f40d85136c3a14e0a3788d28236e Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 17 Jun 2002 15:41:06 +0000 Subject: Fool Qt and fool QtDesigner to unfuck the designer .ui *evilgrin* --- 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 @@ -206,7 +206,7 @@ TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f ) : QString::null, 0, this, 0 ); 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 @@ -30,7 +30,7 @@ 0 0 - 425 + 262 321 @@ -44,349 +44,389 @@ layoutSpacing - - QLayoutWidget + - name - Layout31 + margin + 11 - geometry - - 1 - 6 - 240 - 310 - + spacing + 6 - + + QLayoutWidget - margin - 0 + name + Layout19 - - spacing - 6 - - - QLayoutWidget + + + margin + 0 + - name - Layout19 + spacing + 6 - + + QLabel - margin - 0 + name + txtProg - spacing - 6 + sizePolicy + + 1 + 0 + - - QLabel - - name - txtProg + + text + Progress: + + + + QComboBox + + + text + 0% - + + + text - Progress: + 20% - - - QComboBox - - - text - 0% - - - - - text - 20% - - - - - text - 40% - - - - - text - 60% - - - - - text - 80% - - - - - text - 100% - - - - name - cmbProg + + + + text + 40% + + + + + text + 60% - - maximumSize - - 45 - 32767 - + + + + text + 80% + + + + + text + 100% - - - - - QLayoutWidget + + + name + cmbProg + + + sizePolicy + + 0 + 0 + + + + maximumSize + + 45 + 32767 + + + + + + + QLayoutWidget + + name + Layout20 + + + + margin + 0 + - name - Layout18 + spacing + 6 - + + QLabel - margin - 0 + name + TextLabel2 - spacing - 6 + sizePolicy + + 1 + 0 + - - QLabel - - name - TextLabel3 + + text + Priority: + + + + QComboBox + + + text + 1 - Very High - - frameShape - NoFrame + + + + text + 2 - High - + + + text - Category: + 3 - Normal - - - CategorySelect - - name - comboCategory + + + + text + 4 - Low - - minimumSize - - 60 - 0 - + + + + text + 5 - Very Low - - - - - QLayoutWidget + + + name + comboPriority + + + sizePolicy + + 0 + 0 + + + + currentItem + 2 + + + + + + QLayoutWidget + + name + Layout30 + + + + margin + 0 + - name - Layout20 + spacing + 6 - + + QLabel - margin - 0 + name + TextLabel1 - spacing - 6 + sizePolicy + + 1 + 0 + - - QLabel - - name - TextLabel2 - - - text - Priority: - - - - QComboBox - - - text - 1 - Very High - - - - - text - 2 - High - - - - - text - 3 - Normal - - - - - text - 4 - Low - - - - - text - 5 - Very Low - - - - name - comboPriority - - - sizePolicy - - 7 - 0 - - - - currentItem - 2 - - - - - - QMultiLineEdit + + text + Summary: + + + + QLineEdit + + name + lneSum + + + + OClickableLabel + + name + lblDown + + + sizePolicy + + 0 + 0 + + + + minimumSize + + 20 + 20 + + + + maximumSize + + 20 + 20 + + + + + + + QLayoutWidget + + name + Layout21 + + - name - txtTodo + margin + 0 - - - QLayoutWidget - name - Layout21 + spacing + 6 - + + QCheckBox - margin - 0 + name + checkCompleted - spacing - 6 + text + &Completed - - QCheckBox - - name - checkCompleted - - - text - &Completed - - - - QCheckBox - - name - checkDate - - - text - D&ue - - - - QPushButton - - name - buttonDate - - - enabled - false - - - text - 1 Jan 2001 - - - - - - QLayoutWidget + + + QCheckBox + + name + checkDate + + + text + D&ue + + + + QPushButton + + name + buttonDate + + + enabled + false + + + text + 1 Jan 2001 + + + + + + QMultiLineEdit + + name + txtTodo + + + sizePolicy + + 7 + 7 + + + + + QLayoutWidget + + name + Layout33 + + - name - Layout30 + margin + 0 - + + spacing + 6 + + + QLabel - margin - 0 + name + TextLabel3 - spacing - 6 + sizePolicy + + 1 + 0 + - - QLabel - - name - TextLabel1 - - - text - Summary: - - - - QLineEdit - - name - lneSum - - - - OClickableLabel - - name - lblDown - - - minimumSize - - 20 - 20 - - - - maximumSize - - 20 - 20 - - - - - - - + + frameShape + NoFrame + + + text + Category: + + + + CategorySelect + + name + comboCategory + + + sizePolicy + + 7 + 0 + + + + minimumSize + + 60 + 20 + + + + + + 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 @@ -33,6 +33,7 @@ #include #include +#include #include #include #include @@ -90,6 +91,9 @@ 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 ); m1->insertItem( picker ); -- cgit v0.9.0.2