From 69b0272a8a3b0bd14ec9056a8d6be8cef1cfb1a4 Mon Sep 17 00:00:00 2001 From: DavidXanatos Date: Fri, 13 Jan 2023 09:11:46 +0100 Subject: [PATCH] Update PanelView.h --- SandboxiePlus/MiscHelpers/Common/PanelView.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SandboxiePlus/MiscHelpers/Common/PanelView.h b/SandboxiePlus/MiscHelpers/Common/PanelView.h index 330a9519..b003b07b 100644 --- a/SandboxiePlus/MiscHelpers/Common/PanelView.h +++ b/SandboxiePlus/MiscHelpers/Common/PanelView.h @@ -111,7 +111,7 @@ class MISCHELPERS_EXPORT CPanelWidgetEx : public CPanelWidget public: CPanelWidgetEx(QWidget *parent = 0) : CPanelWidget(parent) { - m_pFinder = new CFinder(NULL, this, false); + m_pFinder = new CFinder(NULL, this, CFinder::eRegExp | CFinder::eCaseSens); m_pMainLayout->addWidget(m_pFinder); QObject::connect(m_pFinder, SIGNAL(SetFilter(const QString&, int, int)), this, SLOT(SetFilter(const QString&, int, int))); } @@ -119,8 +119,8 @@ public: static void ApplyFilter(QTreeWidgetEx* pTree, QTreeWidgetItem* pItem, const QRegularExpression& Exp/*, bool bHighLight = false, int Col = -1*/) { for (int j = 0; j < pTree->columnCount(); j++) { - pItem->setForeground(j, (m_DarkMode && !Exp.isValid() && pItem->text(j).contains(Exp)) ? Qt::yellow : pTree->palette().color(QPalette::WindowText)); - pItem->setBackground(j, (!m_DarkMode && !Exp.isValid() && pItem->text(j).contains(Exp)) ? Qt::yellow : pTree->palette().color(QPalette::Base)); + pItem->setForeground(j, (m_DarkMode && Exp.isValid() && pItem->text(j).contains(Exp)) ? Qt::yellow : pTree->palette().color(QPalette::WindowText)); + pItem->setBackground(j, (!m_DarkMode && Exp.isValid() && pItem->text(j).contains(Exp)) ? Qt::yellow : pTree->palette().color(QPalette::Base)); } for (int i = 0; i < pItem->childCount(); i++)