From 98f3588c957217c720779945a02bc01a164bfaa5 Mon Sep 17 00:00:00 2001 From: zecke Date: Sun, 16 Jun 2002 16:34:50 +0000 Subject: Progress --- (limited to 'core') diff --git a/core/pim/todo/todoentry.ui b/core/pim/todo/todoentry.ui index 87ee68c..5da4bb7 100644 --- a/core/pim/todo/todoentry.ui +++ b/core/pim/todo/todoentry.ui @@ -30,7 +30,7 @@ 0 0 - 245 + 429 321 @@ -48,18 +48,18 @@ QLayoutWidget name - Layout3 + Layout22 geometry - 1 - 25 - 243 - 17 + 0 + 5 + 240 + 310 - + margin 0 @@ -68,55 +68,53 @@ spacing 6 - - QLabel - - name - TextLabel3 - - - frameShape - NoFrame - - - text - Category: - - - - CategorySelect + + QLayoutWidget name - comboCategory + Layout18 + + + margin + 0 + + + spacing + 6 + + + QLabel + + name + TextLabel3 + + + frameShape + NoFrame + + + text + Category: + + + + CategorySelect + + name + comboCategory + + + minimumSize + + 60 + 0 + + + + - - - - QLayoutWidget - - name - Layout6 - - - geometry - - 0 - 0 - 240 - 320 - - - - - margin - 0 - - - spacing - 6 - - + QLayoutWidget name @@ -151,18 +149,87 @@ - - QMultiLineEdit + + QLayoutWidget name - txtTodo + Layout20 + + + margin + 0 + + + spacing + 6 + + + 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 + + + QLayoutWidget name - Layout4 + Layout21 @@ -212,11 +279,11 @@ - + QLayoutWidget name - Layout4 + Layout19 @@ -231,11 +298,11 @@ QLabel name - TextLabel2 + txtProg text - Priority: + Progress: @@ -243,51 +310,60 @@ text - 1 - Very High + 0% text - 2 - High + 20% text - 3 - Normal + 40% text - 4 - Low + 60% text - 5 - Very Low + 80% + + + + + text + 100% name - comboPriority + cmbProg - sizePolicy - - 7 - 0 - - - - currentItem - 2 + maximumSize + + 45 + 32767 + + + QMultiLineEdit + + name + txtTodo + + diff --git a/core/pim/todo/todoentryimpl.cpp b/core/pim/todo/todoentryimpl.cpp index dfaf9b4..f8e2f4d 100644 --- a/core/pim/todo/todoentryimpl.cpp +++ b/core/pim/todo/todoentryimpl.cpp @@ -63,6 +63,7 @@ NewTaskDialog::NewTaskDialog( const ToDoEvent& task, QWidget *parent, txtTodo->setText( task.description() ); lneSum->setText( task.summary() ); + cmbProg->setCurrentItem( task.progress()/20 ); } /* @@ -135,7 +136,8 @@ ToDoEvent NewTaskDialog::todoEntry() todo.setDescription( txtTodo->text() ); todo.setSummary( lneSum->text() ); - + QString text = cmbProg->currentText(); + todo.setProgress( text.remove( text.length()-1, 1 ).toUShort() ); return todo; } -- cgit v0.9.0.2