Diffstat (limited to 'noncore/apps/odict/searchmethoddlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/odict/searchmethoddlg.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/noncore/apps/odict/searchmethoddlg.cpp b/noncore/apps/odict/searchmethoddlg.cpp index 99cd8db..8ed7152 100644 --- a/noncore/apps/odict/searchmethoddlg.cpp +++ b/noncore/apps/odict/searchmethoddlg.cpp @@ -17,8 +17,9 @@ #include "searchmethoddlg.h" -#include <qdialog.h> #include <qpe/config.h> -#include <qlayout.h> +#include <qpe/qpeapplication.h> +#include <qdialog.h> +#include <qlayout.h> #include <qhbox.h> #include <qvbox.h> @@ -56,5 +57,5 @@ SearchMethodDlg::SearchMethodDlg(QWidget *parent, const char *name, bool modal, trenner = new QLineEdit( dummywidget ); trenner->setText( "::" ); - + QGridLayout *grid = new QGridLayout( dummywidget, 2,3 ); grid->addWidget( lag1, 0,0 ); @@ -64,12 +65,12 @@ SearchMethodDlg::SearchMethodDlg(QWidget *parent, const char *name, bool modal, grid->addWidget( trenner, 1,1 ); grid->addWidget( lang2, 1,2 ); - + vbox_layout->addWidget( vbox ); - showMaximized(); - + QPEApplication::execDialog ( this ); + if( !itemname ) setCaption( tr( "New Searchmethod" ) ); - else + else { setCaption( tr( "Change Searchmethod" ) ); |