From 58135020d8712d95165aac4ddab069f519084ad4 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 24 Nov 2018 04:57:39 +0100 Subject: 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 :) --- moviewidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'moviewidget.cpp') 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")); -- cgit v1.2.3-70-g09d2