summaryrefslogtreecommitdiff
authorzecke <zecke>2002-06-16 16:34:50 (UTC)
committer zecke <zecke>2002-06-16 16:34:50 (UTC)
commit98f3588c957217c720779945a02bc01a164bfaa5 (patch) (side-by-side diff)
treefcf86a620f334d9354bd39cf2b436c5372de6d53
parent3b8192d0f5a41c40092af48df8abc39aa3d1c355 (diff)
downloadopie-98f3588c957217c720779945a02bc01a164bfaa5.zip
opie-98f3588c957217c720779945a02bc01a164bfaa5.tar.gz
opie-98f3588c957217c720779945a02bc01a164bfaa5.tar.bz2
Progress
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/todoentry.ui178
-rw-r--r--core/pim/todo/todoentryimpl.cpp4
2 files changed, 130 insertions, 52 deletions
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
@@ -32,3 +32,3 @@
<y>0</y>
- <width>245</width>
+ <width>429</width>
<height>321</height>
@@ -50,3 +50,3 @@
<name>name</name>
- <cstring>Layout3</cstring>
+ <cstring>Layout22</cstring>
</property>
@@ -55,8 +55,23 @@
<rect>
- <x>1</x>
- <y>25</y>
- <width>243</width>
- <height>17</height>
+ <x>0</x>
+ <y>5</y>
+ <width>240</width>
+ <height>310</height>
</rect>
</property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="3" column="0" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout18</cstring>
+ </property>
<hbox>
@@ -91,2 +106,9 @@
</property>
+ <property stdset="1">
+ <name>minimumSize</name>
+ <size>
+ <width>60</width>
+ <height>0</height>
+ </size>
+ </property>
</widget>
@@ -94,3 +116,3 @@
</widget>
- <widget>
+ <widget row="4" column="0" >
<class>QLayoutWidget</class>
@@ -98,14 +120,5 @@
<name>name</name>
- <cstring>Layout6</cstring>
- </property>
- <property stdset="1">
- <name>geometry</name>
- <rect>
- <x>0</x>
- <y>0</y>
- <width>240</width>
- <height>320</height>
- </rect>
+ <cstring>Layout4</cstring>
</property>
- <grid>
+ <hbox>
<property stdset="1">
@@ -118,3 +131,23 @@
</property>
- <widget row="2" column="0" >
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel1</cstring>
+ </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>
+ </hbox>
+ </widget>
+ <widget row="0" column="0" >
<class>QLayoutWidget</class>
@@ -122,3 +155,3 @@
<name>name</name>
- <cstring>Layout4</cstring>
+ <cstring>Layout20</cstring>
</property>
@@ -137,3 +170,3 @@
<name>name</name>
- <cstring>TextLabel1</cstring>
+ <cstring>TextLabel2</cstring>
</property>
@@ -141,3 +174,3 @@
<name>text</name>
- <string>Summary:</string>
+ <string>Priority:</string>
</property>
@@ -145,17 +178,51 @@
<widget>
- <class>QLineEdit</class>
+ <class>QComboBox</class>
+ <item>
+ <property>
+ <name>text</name>
+ <string>1 - Very High</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>2 - High</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>3 - Normal</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>4 - Low</string>
+ </property>
+ </item>
+ <item>
+ <property>
+ <name>text</name>
+ <string>5 - Very Low</string>
+ </property>
+ </item>
<property stdset="1">
<name>name</name>
- <cstring>lneSum</cstring>
+ <cstring>comboPriority</cstring>
</property>
- </widget>
- </hbox>
- </widget>
- <widget row="3" column="0" >
- <class>QMultiLineEdit</class>
<property stdset="1">
- <name>name</name>
- <cstring>txtTodo</cstring>
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>7</hsizetype>
+ <vsizetype>0</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>currentItem</name>
+ <number>2</number>
</property>
</widget>
+ </hbox>
+ </widget>
<widget row="1" column="0" >
@@ -164,3 +231,3 @@
<name>name</name>
- <cstring>Layout4</cstring>
+ <cstring>Layout21</cstring>
</property>
@@ -214,3 +281,3 @@
</widget>
- <widget row="0" column="0" >
+ <widget row="2" column="0" >
<class>QLayoutWidget</class>
@@ -218,3 +285,3 @@
<name>name</name>
- <cstring>Layout4</cstring>
+ <cstring>Layout19</cstring>
</property>
@@ -233,3 +300,3 @@
<name>name</name>
- <cstring>TextLabel2</cstring>
+ <cstring>txtProg</cstring>
</property>
@@ -237,3 +304,3 @@
<name>text</name>
- <string>Priority:</string>
+ <string>Progress:</string>
</property>
@@ -245,3 +312,3 @@
<name>text</name>
- <string>1 - Very High</string>
+ <string>0%</string>
</property>
@@ -251,3 +318,3 @@
<name>text</name>
- <string>2 - High</string>
+ <string>20%</string>
</property>
@@ -257,3 +324,3 @@
<name>text</name>
- <string>3 - Normal</string>
+ <string>40%</string>
</property>
@@ -263,3 +330,3 @@
<name>text</name>
- <string>4 - Low</string>
+ <string>60%</string>
</property>
@@ -269,19 +336,21 @@
<name>text</name>
- <string>5 - Very Low</string>
+ <string>80%</string>
</property>
</item>
- <property stdset="1">
- <name>name</name>
- <cstring>comboPriority</cstring>
+ <item>
+ <property>
+ <name>text</name>
+ <string>100%</string>
</property>
+ </item>
<property stdset="1">
- <name>sizePolicy</name>
- <sizepolicy>
- <hsizetype>7</hsizetype>
- <vsizetype>0</vsizetype>
- </sizepolicy>
+ <name>name</name>
+ <cstring>cmbProg</cstring>
</property>
<property stdset="1">
- <name>currentItem</name>
- <number>2</number>
+ <name>maximumSize</name>
+ <size>
+ <width>45</width>
+ <height>32767</height>
+ </size>
</property>
@@ -290,2 +359,9 @@
</widget>
+ <widget row="5" column="0" >
+ <class>QMultiLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>txtTodo</cstring>
+ </property>
+ </widget>
</grid>
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
@@ -65,2 +65,3 @@ NewTaskDialog::NewTaskDialog( const ToDoEvent& task, QWidget *parent,
lneSum->setText( task.summary() );
+ cmbProg->setCurrentItem( task.progress()/20 );
}
@@ -137,3 +138,4 @@ ToDoEvent NewTaskDialog::todoEntry()
todo.setSummary( lneSum->text() );
-
+ QString text = cmbProg->currentText();
+ todo.setProgress( text.remove( text.length()-1, 1 ).toUShort() );
return todo;