Diffstat (limited to 'noncore/apps/opie-gutenbrowser/SearchDialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-gutenbrowser/SearchDialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/opie-gutenbrowser/SearchDialog.cpp b/noncore/apps/opie-gutenbrowser/SearchDialog.cpp index d989304..055ffee 100644 --- a/noncore/apps/opie-gutenbrowser/SearchDialog.cpp +++ b/noncore/apps/opie-gutenbrowser/SearchDialog.cpp | |||
@@ -9,49 +9,49 @@ | |||
9 | #include <qlayout.h> | 9 | #include <qlayout.h> |
10 | #include <qcheckbox.h> | 10 | #include <qcheckbox.h> |
11 | #include <qlabel.h> | 11 | #include <qlabel.h> |
12 | #include <qlineedit.h> | 12 | #include <qlineedit.h> |
13 | #include <qpushbutton.h> | 13 | #include <qpushbutton.h> |
14 | #include <qvariant.h> | 14 | #include <qvariant.h> |
15 | #include <qtooltip.h> | 15 | #include <qtooltip.h> |
16 | #include <qwhatsthis.h> | 16 | #include <qwhatsthis.h> |
17 | #include <qmessagebox.h> | 17 | #include <qmessagebox.h> |
18 | #include <qdir.h> | 18 | #include <qdir.h> |
19 | #include <qpe/config.h> | 19 | #include <qpe/config.h> |
20 | 20 | ||
21 | /*This is just a single text entry dialog */ | 21 | /*This is just a single text entry dialog */ |
22 | SearchDialog::SearchDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) | 22 | SearchDialog::SearchDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) |
23 | : QDialog( parent, name, modal, fl ) | 23 | : QDialog( parent, name, modal, fl ) |
24 | { | 24 | { |
25 | if ( !name ) | 25 | if ( !name ) |
26 | setName( "SearchDialog" ); | 26 | setName( "SearchDialog" ); |
27 | Config cfg("Gutenbrowser"); | 27 | Config cfg("Gutenbrowser"); |
28 | cfg.setGroup("General"); | 28 | cfg.setGroup("General"); |
29 | QString lastSearch=cfg.readEntry("LastSearch",""); | 29 | QString lastSearch=cfg.readEntry("LastSearch",""); |
30 | 30 | ||
31 | #warning FIXME | 31 | #warning FIXME |
32 | // FIXME | 32 | // FIXME |
33 | resize( 220,100); | 33 | resize( 220,110); |
34 | 34 | ||
35 | QGridLayout *layout = new QGridLayout( this ); | 35 | QGridLayout *layout = new QGridLayout( this ); |
36 | layout->setSpacing( 2); | 36 | layout->setSpacing( 2); |
37 | layout->setMargin( 2); | 37 | layout->setMargin( 2); |
38 | 38 | ||
39 | QString local_library = (QDir::homeDirPath ()) +"/Applications/gutenbrowser/"; | 39 | QString local_library = (QDir::homeDirPath ()) +"/Applications/gutenbrowser/"; |
40 | TextLabel1 = new QLabel( this, "TextLabel1" ); | 40 | TextLabel1 = new QLabel( this, "TextLabel1" ); |
41 | layout->addMultiCellWidget( TextLabel1, 0, 0, 0, 1); | 41 | layout->addMultiCellWidget( TextLabel1, 0, 0, 0, 1); |
42 | 42 | ||
43 | label1Str= "<P>Enter text to search etext for </P>" ; | 43 | label1Str= "<P>Enter text to search etext for </P>" ; |
44 | TextLabel1->setText( tr( label1Str) ); | 44 | TextLabel1->setText( tr( label1Str) ); |
45 | 45 | ||
46 | SearchLineEdit = new QLineEdit( this, "SearchLineEdit" ); | 46 | SearchLineEdit = new QLineEdit( this, "SearchLineEdit" ); |
47 | layout->addMultiCellWidget( SearchLineEdit, 1, 1, 0, 1); | 47 | layout->addMultiCellWidget( SearchLineEdit, 1, 1, 0, 1); |
48 | 48 | ||
49 | buttonOk = new QPushButton( this, "buttonOk" ); | 49 | buttonOk = new QPushButton( this, "buttonOk" ); |
50 | buttonOk->setText( tr( "Sea&rch" ) ); | 50 | buttonOk->setText( tr( "Sea&rch" ) ); |
51 | buttonOk->setAutoDefault( TRUE ); | 51 | buttonOk->setAutoDefault( TRUE ); |
52 | buttonOk->setToggleButton( TRUE); | 52 | buttonOk->setToggleButton( TRUE); |
53 | buttonOk->setDefault( TRUE ); | 53 | buttonOk->setDefault( TRUE ); |
54 | 54 | ||
55 | layout->addMultiCellWidget(buttonOk, 2, 2, 0, 0); | 55 | layout->addMultiCellWidget(buttonOk, 2, 2, 0, 0); |
56 | 56 | ||
57 | buttonCancel = new QPushButton( this, "buttonCancel" ); | 57 | buttonCancel = new QPushButton( this, "buttonCancel" ); |