From 6582895befc98131430710191238a93b9dde161c Mon Sep 17 00:00:00 2001 From: ar Date: Sat, 07 Feb 2004 23:52:31 +0000 Subject: QPEApplication::showDialog() and QPEAPplication::execDialog() for better big screen handling --- (limited to 'core/pim/todo/todoeditor.cpp') diff --git a/core/pim/todo/todoeditor.cpp b/core/pim/todo/todoeditor.cpp index c204325..78aedd6 100644 --- a/core/pim/todo/todoeditor.cpp +++ b/core/pim/todo/todoeditor.cpp @@ -1,4 +1,6 @@ +#include + #include "otaskeditor.h" #include "todoeditor.h" @@ -19,10 +21,8 @@ OTodo Editor::newTodo( int cur, e->setCaption( QObject::tr("Enter Task") ); e->init( cur ); + int ret = QPEApplication::execDialog( e ); - e->showMaximized(); - - int ret = e->exec(); if ( QDialog::Accepted == ret ) { m_accepted = true; }else @@ -41,8 +41,7 @@ OTodo Editor::edit( QWidget *, e->init( todo ); e->setCaption( QObject::tr( "Edit Task" ) ); - e->showMaximized(); - int ret = e->exec(); + int ret = QPEApplication::execDialog( e ); OTodo ev = e->todo(); if ( ret == QDialog::Accepted ) -- cgit v0.9.0.2