diff options
author | Arno <arno@disconnect.de> | 2018-11-24 04:57:39 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-11-24 04:57:39 +0100 |
commit | 58135020d8712d95165aac4ddab069f519084ad4 (patch) | |
tree | 6ed8a1c9af989af526202578b3318f94aef8dfde | |
parent | ccde859868e8f292b4df172050767ce4327bb3d3 (diff) | |
download | SheMov-58135020d8712d95165aac4ddab069f519084ad4.tar.gz SheMov-58135020d8712d95165aac4ddab069f519084ad4.tar.bz2 SheMov-58135020d8712d95165aac4ddab069f519084ad4.zip |
Fix toolbar in MovieWidget
I missed the clear filter icon when adjusting Helper::icon for dark
themes. Fix it and replace the 'X' with something nicer :)
-rw-r--r-- | moviewidget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/moviewidget.cpp b/moviewidget.cpp index 9c114e6..adbef05 100644 --- a/moviewidget.cpp +++ b/moviewidget.cpp @@ -66,11 +66,14 @@ void MovieWidget::setupWidget(){ mFilterLE = new QLineEdit; connect(mFilterLE, &QLineEdit::returnPressed, [=] { mTopProxy->setFilterRegExp(QRegExp(mFilterLE->text())); }); QToolBar *filterTB = new QToolBar; - QAction *clearFilter = new QAction(Helper::icon(QColor(255,85,255), Qt::white, 'X', true, true), tr("Clear"), this); + QAction *doFilter = new QAction(Helper::icon(Qt::transparent, qApp->palette().color(QPalette::Text), QChar(0x2245), true, false), tr("Filter"), this); + connect(doFilter, &QAction::triggered, [=] { mTopProxy->setFilterRegExp(QRegExp(mFilterLE->text())); }); + QAction *clearFilter = new QAction(Helper::icon(Qt::transparent, qApp->palette().color(QPalette::Text), QChar(0x2694), true, false), tr("Clear"), this); connect(clearFilter, &QAction::triggered, [=] { mFilterLE->clear(); mTopProxy->setFilterRegExp(QString()); }); + filterTB->addAction(doFilter); filterTB->addAction(clearFilter); QLabel *selectionL = new QLabel(tr("Selection")); |