Skip to content

Commit e3569d5

Browse files
committed
Fixed SearchBox UI
1 parent 4ad6c1a commit e3569d5

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/fhex.cpp

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -286,25 +286,22 @@ Fhex::Fhex(QWidget *parent, QApplication *app, QString filepath)
286286
//TODO: formatOption->addItem("UTF-16");
287287
searchFormatOption->addItem("HEX");
288288
searchFormatOption->setFixedWidth(80);
289-
replaceText->setStyleSheet("QPlainTextEdit { margin-left: 90px; }");
290289
firstRow->addWidget(searchFormatOption);
291-
firstRow->addWidget(searchText);
292290
this->regexCheckBox.setText("regex");
293291
this->regexCheckBox.setChecked(false);
294292
this->regexCheckBox.setFixedWidth(60);
295293
firstRow->addWidget(&regexCheckBox);
296294
firstRow->addWidget(searchButton);
297295
firstRow->addWidget(backSearchButton);
298-
secondRow->addWidget(replaceText);
299296
secondRow->addWidget(replaceButton);
300297
secondRow->addWidget(replaceAllButton);
301-
searchBoxLayout->addRow(firstRow);
302-
searchBoxLayout->addRow(secondRow);
298+
searchBoxLayout->addRow(searchText, firstRow);
299+
searchBoxLayout->addRow(replaceText, secondRow);
303300
searchBox->setLayout(searchBoxLayout);
304-
searchBox->setFixedHeight(100);
305-
searchBox->setMinimumWidth(this->width());
306-
searchText->setFixedWidth(searchBox->width() / 2);
307-
replaceText->setFixedWidth(searchText->width());
301+
searchBox->setFixedHeight(90);
302+
searchBox->setMinimumWidth(300);
303+
searchText->setFixedWidth(300);
304+
replaceText->setFixedWidth(300);
308305
searchBox->setObjectName("container");
309306
searchBox->setStyleSheet("QFrame#container { border: 1px solid #bbbbbb; padding: 0px; margin: 0px;}");
310307
searchBox->setVisible(false);

0 commit comments

Comments
 (0)