Commit 2bac328c authored by Andrey Butirsky's avatar Andrey Butirsky
Browse files

feat: QML Keyboard Layout applet: allow Short Name override

In parity with legacy layout Widget,
user can now override layout Short Name from KCM

CCBUG: 390079
parent 283dff91
......@@ -186,6 +186,16 @@ xkb_keymap *Xkb::loadKeymapFromConfig()
.options = options.constData()
const QStringList displayNames = config.readEntry("DisplayNames", QStringList());
const int range = qMin(m_layoutList.size(), displayNames.size());
for (int i = 0; i < range; ++i) {
const QString &displayName =;
if ( !displayName.isEmpty() ) {
m_layoutList.replace(i, displayName);
return xkb_keymap_new_from_names(m_context, &ruleNames, XKB_KEYMAP_COMPILE_NO_FLAGS);
Supports Markdown
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