summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-04-08 23:42:26 (UTC)
committer llornkcor <llornkcor>2004-04-08 23:42:26 (UTC)
commit5222ba9581e4a0f5fa1a1f16e971e8278978bdd7 (patch) (unidiff)
tree0c1601471d536f4fe0cc9088c1cba3088e81de42
parent8ea8d193ff14250d4dbc0fc3d4699e5888ba35fe (diff)
downloadopie-5222ba9581e4a0f5fa1a1f16e971e8278978bdd7.zip
opie-5222ba9581e4a0f5fa1a1f16e971e8278978bdd7.tar.gz
opie-5222ba9581e4a0f5fa1a1f16e971e8278978bdd7.tar.bz2
fix button layout
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-gutenbrowser/SearchDialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/apps/opie-gutenbrowser/SearchDialog.cpp b/noncore/apps/opie-gutenbrowser/SearchDialog.cpp
index dab4789..4ddb3f0 100644
--- a/noncore/apps/opie-gutenbrowser/SearchDialog.cpp
+++ b/noncore/apps/opie-gutenbrowser/SearchDialog.cpp
@@ -36,48 +36,49 @@ SearchDialog::SearchDialog( QWidget* parent, const char* name, bool modal, WFla
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" );
58 buttonCancel->setText( tr( "&Cancel" ) ); 58 buttonCancel->setText( tr( "&Cancel" ) );
59 buttonCancel->setAutoDefault( TRUE ); 59 buttonCancel->setAutoDefault( TRUE );
60 layout->addMultiCellWidget(buttonCancel, 2, 2, 1, 1);
60// buttonCancel->setMaximumWidth(40); 61// buttonCancel->setMaximumWidth(40);
61 62
62 63
63 if( (QString)name !="Etext Search" ) 64 if( (QString)name !="Etext Search" )
64 SearchLineEdit->setText(lastSearch); 65 SearchLineEdit->setText(lastSearch);
65 66
66 caseSensitiveCheckBox = new QCheckBox ( tr("Case Sensitive"), this ); 67 caseSensitiveCheckBox = new QCheckBox ( tr("Case Sensitive"), this );
67 layout->addMultiCellWidget( caseSensitiveCheckBox, 3, 3, 0, 1); 68 layout->addMultiCellWidget( caseSensitiveCheckBox, 3, 3, 0, 1);
68 69
69 // signals and slots connections 70 // signals and slots connections
70 connect( buttonOk, SIGNAL( clicked() ), this, SLOT( byeBye() ) ); 71 connect( buttonOk, SIGNAL( clicked() ), this, SLOT( byeBye() ) );
71 72
72 connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( closed() ) ); 73 connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( closed() ) );
73 SearchLineEdit->setFocus(); 74 SearchLineEdit->setFocus();
74} 75}
75 76
76SearchDialog::~SearchDialog() 77SearchDialog::~SearchDialog()
77{ 78{
78} 79}
79 80
80QString SearchDialog::get_text() { 81QString SearchDialog::get_text() {
81 return SearchLineEdit->text(); 82 return SearchLineEdit->text();
82} 83}
83 84