From 6e4f0ecabf5ea623de934cc27c9bdbe3bccf43aa Mon Sep 17 00:00:00 2001 From: Albert S Date: Fri, 5 Mar 2021 20:51:14 +0100 Subject: [PATCH] Window: filterGridFor: Search button Command too --- window.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/window.cpp b/window.cpp index 5cef027..cd7d0ac 100644 --- a/window.cpp +++ b/window.cpp @@ -411,7 +411,8 @@ void Window::filterGridFor(QString filter) bool userEntryMatch = false; for(EntryPushButton *button : this->userEntryButtons) { - if(button->getName().contains(filter, Qt::CaseInsensitive)) + if(button->getName().contains(filter, Qt::CaseInsensitive) || + button->getCommand().contains(filter, Qt::CaseInsensitive)) { button->setVisible(true); grid->addWidget(button, button->getRow(), button->getCol()); @@ -427,7 +428,8 @@ void Window::filterGridFor(QString filter) const int MAX_COLS = this->settingsProvider->getMaxCols(); for(EntryPushButton *button : this->systemEntryButtons) { - if(button->getName().contains(filter, Qt::CaseInsensitive)) + if(button->getName().contains(filter, Qt::CaseInsensitive) || + button->getCommand().contains(filter, Qt::CaseInsensitive)) { button->setVisible(true); if(i < 10)