From 47f50cc423eab9e36a72bff18d1815d77d5dee00 Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 13 Apr 2002 23:19:11 +0000 Subject: use OFontMenu still need to catch up with the zaurus todolist --- diff --git a/core/pim/todo/TODO b/core/pim/todo/TODO index e5d2f9d..040f163 100644 --- a/core/pim/todo/TODO +++ b/core/pim/todo/TODO @@ -1,3 +1,4 @@ -fix the journal -fix day wrapping update all DueDateItems --when checking the C. box update the deadline \ No newline at end of file +-when checking the C. box update the deadline +-TodoLabel : public TextView 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 @@ #include #include +#include #include #include @@ -185,7 +186,7 @@ TodoWindow::TodoWindow( QWidget *parent, const char *name, WFlags f = 0 ) : catMenu->setCheckable( true ); populateCategories(); - mb->insertItem( tr( "Task" ), edit ); + mb->insertItem( tr( "Data" ), edit ); mb->insertItem( tr( "View" ), catMenu ); resize( 200, 300 ); @@ -358,6 +359,12 @@ void TodoWindow::populateCategories() { catMenu->clear(); + QList list; + list.append(table ); + OFontMenu *menu = new OFontMenu(this, "menu",list ); + menu->forceSize( table->horizontalHeader(), 10 ); + catMenu->insertItem(tr("Fonts"), menu ); + completedAction->addTo( catMenu ); completedAction->setOn( table->showCompleted() ); showdeadlineAction->addTo( catMenu ); diff --git a/core/pim/todo/mainwindow.h b/core/pim/todo/mainwindow.h index a81c27c..9be7c66 100644 --- a/core/pim/todo/mainwindow.h +++ b/core/pim/todo/mainwindow.h @@ -28,6 +28,7 @@ class TodoTable; class QAction; class QPopupMenu; class Ir; +class OFontMenu; class TodoWindow : public QMainWindow { @@ -77,3 +78,5 @@ private: }; #endif + + -- cgit v0.9.0.2