summaryrefslogtreecommitdiff
Unidiff
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 @@
32 <y>0</y> 32 <y>0</y>
33 <width>245</width> 33 <width>429</width>
34 <height>321</height> 34 <height>321</height>
@@ -50,3 +50,3 @@
50 <name>name</name> 50 <name>name</name>
51 <cstring>Layout3</cstring> 51 <cstring>Layout22</cstring>
52 </property> 52 </property>
@@ -55,8 +55,23 @@
55 <rect> 55 <rect>
56 <x>1</x> 56 <x>0</x>
57 <y>25</y> 57 <y>5</y>
58 <width>243</width> 58 <width>240</width>
59 <height>17</height> 59 <height>310</height>
60 </rect> 60 </rect>
61 </property> 61 </property>
62 <grid>
63 <property stdset="1">
64 <name>margin</name>
65 <number>0</number>
66 </property>
67 <property stdset="1">
68 <name>spacing</name>
69 <number>6</number>
70 </property>
71 <widget row="3" column="0" >
72 <class>QLayoutWidget</class>
73 <property stdset="1">
74 <name>name</name>
75 <cstring>Layout18</cstring>
76 </property>
62 <hbox> 77 <hbox>
@@ -91,2 +106,9 @@
91 </property> 106 </property>
107 <property stdset="1">
108 <name>minimumSize</name>
109 <size>
110 <width>60</width>
111 <height>0</height>
112 </size>
113 </property>
92 </widget> 114 </widget>
@@ -94,3 +116,3 @@
94 </widget> 116 </widget>
95 <widget> 117 <widget row="4" column="0" >
96 <class>QLayoutWidget</class> 118 <class>QLayoutWidget</class>
@@ -98,14 +120,5 @@
98 <name>name</name> 120 <name>name</name>
99 <cstring>Layout6</cstring> 121 <cstring>Layout4</cstring>
100 </property>
101 <property stdset="1">
102 <name>geometry</name>
103 <rect>
104 <x>0</x>
105 <y>0</y>
106 <width>240</width>
107 <height>320</height>
108 </rect>
109 </property> 122 </property>
110 <grid> 123 <hbox>
111 <property stdset="1"> 124 <property stdset="1">
@@ -118,3 +131,23 @@
118 </property> 131 </property>
119 <widget row="2" column="0" > 132 <widget>
133 <class>QLabel</class>
134 <property stdset="1">
135 <name>name</name>
136 <cstring>TextLabel1</cstring>
137 </property>
138 <property stdset="1">
139 <name>text</name>
140 <string>Summary:</string>
141 </property>
142 </widget>
143 <widget>
144 <class>QLineEdit</class>
145 <property stdset="1">
146 <name>name</name>
147 <cstring>lneSum</cstring>
148 </property>
149 </widget>
150 </hbox>
151 </widget>
152 <widget row="0" column="0" >
120 <class>QLayoutWidget</class> 153 <class>QLayoutWidget</class>
@@ -122,3 +155,3 @@
122 <name>name</name> 155 <name>name</name>
123 <cstring>Layout4</cstring> 156 <cstring>Layout20</cstring>
124 </property> 157 </property>
@@ -137,3 +170,3 @@
137 <name>name</name> 170 <name>name</name>
138 <cstring>TextLabel1</cstring> 171 <cstring>TextLabel2</cstring>
139 </property> 172 </property>
@@ -141,3 +174,3 @@
141 <name>text</name> 174 <name>text</name>
142 <string>Summary:</string> 175 <string>Priority:</string>
143 </property> 176 </property>
@@ -145,17 +178,51 @@
145 <widget> 178 <widget>
146 <class>QLineEdit</class> 179 <class>QComboBox</class>
180 <item>
181 <property>
182 <name>text</name>
183 <string>1 - Very High</string>
184 </property>
185 </item>
186 <item>
187 <property>
188 <name>text</name>
189 <string>2 - High</string>
190 </property>
191 </item>
192 <item>
193 <property>
194 <name>text</name>
195 <string>3 - Normal</string>
196 </property>
197 </item>
198 <item>
199 <property>
200 <name>text</name>
201 <string>4 - Low</string>
202 </property>
203 </item>
204 <item>
205 <property>
206 <name>text</name>
207 <string>5 - Very Low</string>
208 </property>
209 </item>
147 <property stdset="1"> 210 <property stdset="1">
148 <name>name</name> 211 <name>name</name>
149 <cstring>lneSum</cstring> 212 <cstring>comboPriority</cstring>
150 </property> 213 </property>
151 </widget>
152 </hbox>
153 </widget>
154 <widget row="3" column="0" >
155 <class>QMultiLineEdit</class>
156 <property stdset="1"> 214 <property stdset="1">
157 <name>name</name> 215 <name>sizePolicy</name>
158 <cstring>txtTodo</cstring> 216 <sizepolicy>
217 <hsizetype>7</hsizetype>
218 <vsizetype>0</vsizetype>
219 </sizepolicy>
220 </property>
221 <property stdset="1">
222 <name>currentItem</name>
223 <number>2</number>
159 </property> 224 </property>
160 </widget> 225 </widget>
226 </hbox>
227 </widget>
161 <widget row="1" column="0" > 228 <widget row="1" column="0" >
@@ -164,3 +231,3 @@
164 <name>name</name> 231 <name>name</name>
165 <cstring>Layout4</cstring> 232 <cstring>Layout21</cstring>
166 </property> 233 </property>
@@ -214,3 +281,3 @@
214 </widget> 281 </widget>
215 <widget row="0" column="0" > 282 <widget row="2" column="0" >
216 <class>QLayoutWidget</class> 283 <class>QLayoutWidget</class>
@@ -218,3 +285,3 @@
218 <name>name</name> 285 <name>name</name>
219 <cstring>Layout4</cstring> 286 <cstring>Layout19</cstring>
220 </property> 287 </property>
@@ -233,3 +300,3 @@
233 <name>name</name> 300 <name>name</name>
234 <cstring>TextLabel2</cstring> 301 <cstring>txtProg</cstring>
235 </property> 302 </property>
@@ -237,3 +304,3 @@
237 <name>text</name> 304 <name>text</name>
238 <string>Priority:</string> 305 <string>Progress:</string>
239 </property> 306 </property>
@@ -245,3 +312,3 @@
245 <name>text</name> 312 <name>text</name>
246 <string>1 - Very High</string> 313 <string>0%</string>
247 </property> 314 </property>
@@ -251,3 +318,3 @@
251 <name>text</name> 318 <name>text</name>
252 <string>2 - High</string> 319 <string>20%</string>
253 </property> 320 </property>
@@ -257,3 +324,3 @@
257 <name>text</name> 324 <name>text</name>
258 <string>3 - Normal</string> 325 <string>40%</string>
259 </property> 326 </property>
@@ -263,3 +330,3 @@
263 <name>text</name> 330 <name>text</name>
264 <string>4 - Low</string> 331 <string>60%</string>
265 </property> 332 </property>
@@ -269,19 +336,21 @@
269 <name>text</name> 336 <name>text</name>
270 <string>5 - Very Low</string> 337 <string>80%</string>
271 </property> 338 </property>
272 </item> 339 </item>
273 <property stdset="1"> 340 <item>
274 <name>name</name> 341 <property>
275 <cstring>comboPriority</cstring> 342 <name>text</name>
343 <string>100%</string>
276 </property> 344 </property>
345 </item>
277 <property stdset="1"> 346 <property stdset="1">
278 <name>sizePolicy</name> 347 <name>name</name>
279 <sizepolicy> 348 <cstring>cmbProg</cstring>
280 <hsizetype>7</hsizetype>
281 <vsizetype>0</vsizetype>
282 </sizepolicy>
283 </property> 349 </property>
284 <property stdset="1"> 350 <property stdset="1">
285 <name>currentItem</name> 351 <name>maximumSize</name>
286 <number>2</number> 352 <size>
353 <width>45</width>
354 <height>32767</height>
355 </size>
287 </property> 356 </property>
@@ -290,2 +359,9 @@
290 </widget> 359 </widget>
360 <widget row="5" column="0" >
361 <class>QMultiLineEdit</class>
362 <property stdset="1">
363 <name>name</name>
364 <cstring>txtTodo</cstring>
365 </property>
366 </widget>
291 </grid> 367 </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,
65 lneSum->setText( task.summary() ); 65 lneSum->setText( task.summary() );
66 cmbProg->setCurrentItem( task.progress()/20 );
66} 67}
@@ -137,3 +138,4 @@ ToDoEvent NewTaskDialog::todoEntry()
137 todo.setSummary( lneSum->text() ); 138 todo.setSummary( lneSum->text() );
138 139 QString text = cmbProg->currentText();
140 todo.setProgress( text.remove( text.length()-1, 1 ).toUShort() );
139 return todo; 141 return todo;