Skip to content

Commit

Permalink
fix: can`t search when button clicked
Browse files Browse the repository at this point in the history
can`t search when button clicked
  • Loading branch information
LiHua000 authored and deepin-mozart committed Dec 1, 2023
1 parent 4f2cce3 commit 2805726
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plugins/find/findtoolwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ void FindToolWindow::setupUi()

void FindToolWindow::addSearchParamWidget(QWidget *parentWidget)
{
setFixedSize(458, 220);
parentWidget->setFixedSize(458, 220);

QFormLayout *formLayout = new QFormLayout();
setLayout(formLayout);
parentWidget->setLayout(formLayout);

DLabel *scopeLabel = new DLabel(QLabel::tr("Scope:"));
d->scopeComboBox = new DComboBox();
Expand All @@ -111,14 +111,14 @@ void FindToolWindow::addSearchParamWidget(QWidget *parentWidget)
d->scopeComboBox->addItem(tr("Current File"));

DLabel *searchLabel = new DLabel(QLabel::tr("Search for:"));
QHBoxLayout *hlayout = new QHBoxLayout(this);
QHBoxLayout *hlayout = new QHBoxLayout();
d->searchLineEdit = new DLineEdit();
d->searchLineEdit->setPlaceholderText(tr("thread"));

d->senseCheckBtn = new DSuggestButton(this);
d->senseCheckBtn = new DSuggestButton();
d->senseCheckBtn->setText("Aa");
d->senseCheckBtn->setFixedSize(36,36);
d->wholeWordsCheckBtn = new DPushButton(this);
d->wholeWordsCheckBtn = new DPushButton();
d->wholeWordsCheckBtn->setIcon(QIcon::fromTheme("find_matchComplete"));
d->wholeWordsCheckBtn->setFixedSize(36,36);
hlayout->addWidget(d->searchLineEdit);
Expand Down

0 comments on commit 2805726

Please sign in to comment.