summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2004-04-08 23:42:26 (UTC)
committer llornkcor <llornkcor>2004-04-08 23:42:26 (UTC)
commit5222ba9581e4a0f5fa1a1f16e971e8278978bdd7 (patch) (side-by-side diff)
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
layout->setSpacing( 2);
layout->setMargin( 2);
QString local_library = (QDir::homeDirPath ()) +"/Applications/gutenbrowser/";
TextLabel1 = new QLabel( this, "TextLabel1" );
layout->addMultiCellWidget( TextLabel1, 0, 0, 0, 1);
label1Str= "<P>Enter text to search etext for </P>" ;
TextLabel1->setText( tr( label1Str) );
SearchLineEdit = new QLineEdit( this, "SearchLineEdit" );
layout->addMultiCellWidget( SearchLineEdit, 1, 1, 0, 1);
buttonOk = new QPushButton( this, "buttonOk" );
buttonOk->setText( tr( "Sea&rch" ) );
buttonOk->setAutoDefault( TRUE );
buttonOk->setToggleButton( TRUE);
buttonOk->setDefault( TRUE );
layout->addMultiCellWidget(buttonOk, 2, 2, 0, 0);
buttonCancel = new QPushButton( this, "buttonCancel" );
buttonCancel->setText( tr( "&Cancel" ) );
buttonCancel->setAutoDefault( TRUE );
+ layout->addMultiCellWidget(buttonCancel, 2, 2, 1, 1);
// buttonCancel->setMaximumWidth(40);
if( (QString)name !="Etext Search" )
SearchLineEdit->setText(lastSearch);
caseSensitiveCheckBox = new QCheckBox ( tr("Case Sensitive"), this );
layout->addMultiCellWidget( caseSensitiveCheckBox, 3, 3, 0, 1);
// signals and slots connections
connect( buttonOk, SIGNAL( clicked() ), this, SLOT( byeBye() ) );
connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( closed() ) );
SearchLineEdit->setFocus();
}
SearchDialog::~SearchDialog()
{
}
QString SearchDialog::get_text() {
return SearchLineEdit->text();
}