Window: filterGridFor: Search button Command too
这个提交包含在:
父节点
2df37212dd
当前提交
6e4f0ecabf
@ -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)
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户