summaryrefslogtreecommitdiff
path: root/noncore/apps/odict/searchmethoddlg.cpp
Unidiff
Diffstat (limited to 'noncore/apps/odict/searchmethoddlg.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/odict/searchmethoddlg.cpp7
1 files changed, 4 insertions, 3 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
@@ -7,28 +7,29 @@
7 **************************************************************************/ 7 **************************************************************************/
8 8
9/*************************************************************************** 9/***************************************************************************
10 * * 10 * *
11 * This program is free software; you can redistribute it and/or modify * 11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by * 12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or * 13 * the Free Software Foundation; either version 2 of the License, or *
14 * ( at your option ) any later version. * 14 * ( at your option ) any later version. *
15 * * 15 * *
16 **************************************************************************/ 16 **************************************************************************/
17#include "searchmethoddlg.h" 17#include "searchmethoddlg.h"
18 18
19#include <qdialog.h>
20#include <qpe/config.h> 19#include <qpe/config.h>
21#include <qlayout.h> 20#include <qpe/qpeapplication.h>
22 21
22#include <qdialog.h>
23#include <qlayout.h>
23#include <qhbox.h> 24#include <qhbox.h>
24#include <qvbox.h> 25#include <qvbox.h>
25#include <qlabel.h> 26#include <qlabel.h>
26#include <qpushbutton.h> 27#include <qpushbutton.h>
27#include <qstring.h> 28#include <qstring.h>
28#include <qlineedit.h> 29#include <qlineedit.h>
29#include <qdir.h> 30#include <qdir.h>
30 31
31#include <opie/ofileselector.h> 32#include <opie/ofileselector.h>
32#include <opie/ofiledialog.h> 33#include <opie/ofiledialog.h>
33 34
34SearchMethodDlg::SearchMethodDlg(QWidget *parent, const char *name, bool modal, QString itemname) : QDialog(parent, name, modal) 35SearchMethodDlg::SearchMethodDlg(QWidget *parent, const char *name, bool modal, QString itemname) : QDialog(parent, name, modal)
@@ -57,25 +58,25 @@ SearchMethodDlg::SearchMethodDlg(QWidget *parent, const char *name, bool modal,
57 trenner->setText( "::" ); 58 trenner->setText( "::" );
58 59
59 QGridLayout *grid = new QGridLayout( dummywidget, 2,3 ); 60 QGridLayout *grid = new QGridLayout( dummywidget, 2,3 );
60 grid->addWidget( lag1, 0,0 ); 61 grid->addWidget( lag1, 0,0 );
61 grid->addWidget( devider, 0,1 ); 62 grid->addWidget( devider, 0,1 );
62 grid->addWidget( lag2, 0,2 ); 63 grid->addWidget( lag2, 0,2 );
63 grid->addWidget( lang1, 1,0 ); 64 grid->addWidget( lang1, 1,0 );
64 grid->addWidget( trenner, 1,1 ); 65 grid->addWidget( trenner, 1,1 );
65 grid->addWidget( lang2, 1,2 ); 66 grid->addWidget( lang2, 1,2 );
66 67
67 vbox_layout->addWidget( vbox ); 68 vbox_layout->addWidget( vbox );
68 69
69 showMaximized(); 70 QPEApplication::execDialog ( this );
70 71
71 if( !itemname ) 72 if( !itemname )
72 setCaption( tr( "New Searchmethod" ) ); 73 setCaption( tr( "New Searchmethod" ) );
73 else 74 else
74 { 75 {
75 setCaption( tr( "Change Searchmethod" ) ); 76 setCaption( tr( "Change Searchmethod" ) );
76 itemName = itemname; 77 itemName = itemname;
77 setupEntries(itemname); 78 setupEntries(itemname);
78 } 79 }
79} 80}
80 81
81void SearchMethodDlg::setupEntries( QString item ) 82void SearchMethodDlg::setupEntries( QString item )