-rw-r--r-- | noncore/apps/zsafe/scqtfileedit.cpp | 4 | ||||
-rw-r--r-- | noncore/apps/zsafe/zsafe.cpp | 31 |
2 files changed, 10 insertions, 25 deletions
diff --git a/noncore/apps/zsafe/scqtfileedit.cpp b/noncore/apps/zsafe/scqtfileedit.cpp index effd86b..7a3d906 100644 --- a/noncore/apps/zsafe/scqtfileedit.cpp +++ b/noncore/apps/zsafe/scqtfileedit.cpp @@ -30,2 +30,4 @@ +#include <qpe/qpeapplication.h> + // #define DEBUGFILEEDIT @@ -160,3 +162,3 @@ ScQtFileEditDlg::ScQtFileEditDlg( QWidget *parent, const char *name, #ifdef QWS - showMaximized(); + QPEApplication::execDialog( this ); #endif diff --git a/noncore/apps/zsafe/zsafe.cpp b/noncore/apps/zsafe/zsafe.cpp index ee1da77..bdd2aed 100644 --- a/noncore/apps/zsafe/zsafe.cpp +++ b/noncore/apps/zsafe/zsafe.cpp @@ -777,10 +777,4 @@ void ZSafe::editPwd() dialog->CommentField->setCursorPosition(0,0); -#ifdef DESKTOP -#ifndef WIN32 - dialog->show(); -#endif -#else - dialog->showMaximized(); -#endif - DialogCode result = (DialogCode) dialog->exec(); + + DialogCode result = (DialogCode) QPEApplication::execDialog( dialog ); @@ -842,10 +836,4 @@ void ZSafe::newPwd() retype: -#ifdef DESKTOP -#ifndef WIN32 - dialog->show(); -#endif -#else - dialog->showMaximized(); -#endif - DialogCode result = (DialogCode) dialog->exec(); + + DialogCode result = (DialogCode) QPEApplication::execDialog( dialog ); #ifdef DESKTOP @@ -856,3 +844,3 @@ retype: { - + QString name = dialog->NameField->text(); @@ -1190,8 +1178,3 @@ void ZSafe::showInfo( QListViewItem *_item) infoForm->hide(); -#ifdef DESKTOP - infoForm->show(); -#else - infoForm->showMaximized(); -#endif - + QPEApplication::showDialog( infoForm ); } @@ -1205,3 +1188,3 @@ void ZSafe::listViewSelected( QListViewItem *_item) selectedItem->setSelected(FALSE); - + selectedItem = _item; |