Show a clear button in the Quick Filter text field in GUI. (#1603)
This commit is contained in:
parent
3bbd9fc9a4
commit
a7a0a54557
|
@ -83,6 +83,7 @@ MainWindow::MainWindow(TranslationHandler* th, QSettings* settings) :
|
||||||
// "Filter" toolbar
|
// "Filter" toolbar
|
||||||
mLineEditFilter = new QLineEdit(mUI.mToolBarFilter);
|
mLineEditFilter = new QLineEdit(mUI.mToolBarFilter);
|
||||||
mLineEditFilter->setPlaceholderText(tr("Quick Filter:"));
|
mLineEditFilter->setPlaceholderText(tr("Quick Filter:"));
|
||||||
|
mLineEditFilter->setClearButtonEnabled(true);
|
||||||
mUI.mToolBarFilter->addWidget(mLineEditFilter);
|
mUI.mToolBarFilter->addWidget(mLineEditFilter);
|
||||||
connect(mLineEditFilter, SIGNAL(textChanged(const QString&)), mFilterTimer, SLOT(start()));
|
connect(mLineEditFilter, SIGNAL(textChanged(const QString&)), mFilterTimer, SLOT(start()));
|
||||||
connect(mLineEditFilter, &QLineEdit::returnPressed, this, &MainWindow::filterResults);
|
connect(mLineEditFilter, &QLineEdit::returnPressed, this, &MainWindow::filterResults);
|
||||||
|
|
Loading…
Reference in New Issue