Commit f75ecceb authored by Igor Poboiko's avatar Igor Poboiko
Browse files

[AgentWidget] Use case-insensitive filter

... which is slighly more useful
parent 9fc946d4
Pipeline #23874 passed with stage
in 21 minutes and 54 seconds
...@@ -136,6 +136,7 @@ AgentWidget::AgentWidget(QWidget *parent) ...@@ -136,6 +136,7 @@ AgentWidget::AgentWidget(QWidget *parent)
ui.restartButton->setIcon(QIcon::fromTheme(QStringLiteral("system-reboot"))); //FIXME: Is using system-reboot icon here a good idea? ui.restartButton->setIcon(QIcon::fromTheme(QStringLiteral("system-reboot"))); //FIXME: Is using system-reboot icon here a good idea?
connect(ui.restartButton, &QPushButton::clicked, this, &AgentWidget::restartAgent); connect(ui.restartButton, &QPushButton::clicked, this, &AgentWidget::restartAgent);
ui.instanceWidget->agentFilterProxyModel()->setFilterCaseSensitivity(Qt::CaseInsensitive);
connect(ui.mFilterAccount, &QLineEdit::textChanged, ui.instanceWidget->agentFilterProxyModel(), &AgentFilterProxyModel::setFilterFixedString); connect(ui.mFilterAccount, &QLineEdit::textChanged, ui.instanceWidget->agentFilterProxyModel(), &AgentFilterProxyModel::setFilterFixedString);
ui.mFilterAccount->installEventFilter(this); ui.mFilterAccount->installEventFilter(this);
ControlGui::widgetNeedsAkonadi(this); ControlGui::widgetNeedsAkonadi(this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment