diff options
-rw-r--r-- | src/assistant/assistant/indexwindow.cpp | 1 | ||||
-rw-r--r-- | src/assistant/help/qhelpsearchquerywidget.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/assistant/assistant/indexwindow.cpp b/src/assistant/assistant/indexwindow.cpp index 44ad56fad..5dd13c3bb 100644 --- a/src/assistant/assistant/indexwindow.cpp +++ b/src/assistant/assistant/indexwindow.cpp @@ -58,6 +58,7 @@ IndexWindow::IndexWindow(QWidget *parent) layout->addWidget(l); l->setBuddy(m_searchLineEdit); + m_searchLineEdit->setClearButtonEnabled(true); connect(m_searchLineEdit, &QLineEdit::textChanged, this, &IndexWindow::filterIndices); m_searchLineEdit->installEventFilter(this); diff --git a/src/assistant/help/qhelpsearchquerywidget.cpp b/src/assistant/help/qhelpsearchquerywidget.cpp index 8cea26a83..de7f9e9f8 100644 --- a/src/assistant/help/qhelpsearchquerywidget.cpp +++ b/src/assistant/help/qhelpsearchquerywidget.cpp @@ -237,6 +237,7 @@ QHelpSearchQueryWidget::QHelpSearchQueryWidget(QWidget *parent) QHBoxLayout* hBoxLayout = new QHBoxLayout(); d->m_searchLabel = new QLabel(this); d->m_lineEdit = new QLineEdit(this); + d->m_lineEdit->setClearButtonEnabled(true); d->m_lineEdit->setCompleter(&d->m_searchCompleter); d->m_lineEdit->installEventFilter(d); d->m_prevQueryButton = new QToolButton(this); |