Commit 763c0cf1 authored by Jayesh Bhoot's avatar Jayesh Bhoot Committed by Nate Graham

Set autofocus to child KPluginSelector on UI load

Summary:
A sibling commit to this commit in frameworks/kcmutils
passes down the focus to the searchbar in KPluginSelector.

BUG: 399516
FIXED-IN: 5.16.0

Depends on D20034

Reviewers: #plasma, ngraham

Reviewed By: ngraham

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D20035
parent f65dd514
......@@ -86,6 +86,9 @@ SearchConfigModule::SearchConfigModule(QWidget* parent, const QVariantList& args
void SearchConfigModule::load()
{
// Set focus on the pluginselector to pass focus to search bar.
m_pluginSelector->setFocus(Qt::OtherFocusReason);
m_pluginSelector->addPlugins(Plasma::RunnerManager::listRunnerInfo(),
KPluginSelector::ReadConfigFile,
i18n("Available Plugins"), QString(),
......
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