author | zecke <zecke> | 2002-04-13 23:19:11 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-04-13 23:19:11 (UTC) |
commit | 47f50cc423eab9e36a72bff18d1815d77d5dee00 (patch) (unidiff) | |
tree | 12a46dd96c76de6b4fc6836b7e241f14036e4a2a /core/pim/todo/mainwindow.cpp | |
parent | 707f0d3dd81b8ecec2df4e942c0efd2ee51b7fc5 (diff) | |
download | opie-47f50cc423eab9e36a72bff18d1815d77d5dee00.zip opie-47f50cc423eab9e36a72bff18d1815d77d5dee00.tar.gz opie-47f50cc423eab9e36a72bff18d1815d77d5dee00.tar.bz2 |
use OFontMenu still need to catch up with the zaurus todolist
-rw-r--r-- | core/pim/todo/mainwindow.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp index a34bcf2..b5cace9 100644 --- a/core/pim/todo/mainwindow.cpp +++ b/core/pim/todo/mainwindow.cpp | |||
@@ -28,6 +28,7 @@ | |||
28 | 28 | ||
29 | #include <opie/tododb.h> | 29 | #include <opie/tododb.h> |
30 | #include <opie/todovcalresource.h> | 30 | #include <opie/todovcalresource.h> |
31 | #include <opie/ofontmenu.h> | ||
31 | 32 | ||
32 | #include <qpe/qpeapplication.h> | 33 | #include <qpe/qpeapplication.h> |
33 | #include <qpe/config.h> | 34 | #include <qpe/config.h> |
@@ -185,7 +186,7 @@ TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f = 0 ) : | |||
185 | catMenu->setCheckable( true ); | 186 | catMenu->setCheckable( true ); |
186 | populateCategories(); | 187 | populateCategories(); |
187 | 188 | ||
188 | mb->insertItem( tr( "Task" ), edit ); | 189 | mb->insertItem( tr( "Data" ), edit ); |
189 | mb->insertItem( tr( "View" ), catMenu ); | 190 | mb->insertItem( tr( "View" ), catMenu ); |
190 | 191 | ||
191 | resize( 200, 300 ); | 192 | resize( 200, 300 ); |
@@ -358,6 +359,12 @@ void TodoWindow::populateCategories() | |||
358 | { | 359 | { |
359 | catMenu->clear(); | 360 | catMenu->clear(); |
360 | 361 | ||
362 | QList<QWidget> list; | ||
363 | list.append(table ); | ||
364 | OFontMenu *menu = new OFontMenu(this, "menu",list ); | ||
365 | menu->forceSize( table->horizontalHeader(), 10 ); | ||
366 | catMenu->insertItem(tr("Fonts"), menu ); | ||
367 | |||
361 | completedAction->addTo( catMenu ); | 368 | completedAction->addTo( catMenu ); |
362 | completedAction->setOn( table->showCompleted() ); | 369 | completedAction->setOn( table->showCompleted() ); |
363 | showdeadlineAction->addTo( catMenu ); | 370 | showdeadlineAction->addTo( catMenu ); |