diff --git a/kcms/keys/shortcutsmodel.cpp b/kcms/keys/shortcutsmodel.cpp --- a/kcms/keys/shortcutsmodel.cpp +++ b/kcms/keys/shortcutsmodel.cpp @@ -86,6 +86,7 @@ watcher->deleteLater(); if (--*pendingCalls == 0) { QCollator collator; + collator.setCaseSensitivity(Qt::CaseInsensitive); std::sort(m_components.begin(), m_components.end(), [&](const Component &c1, const Component &c2){ return c1.type != c2.type ? c1.type < c2.type : collator.compare(c1.friendlyName, c2.friendlyName) < 0; }); @@ -135,6 +136,8 @@ c.shortcuts.push_back(shortcut); } QCollator collator; + collator.setCaseSensitivity(Qt::CaseInsensitive); + collator.setNumericMode(true); std::sort(c.shortcuts.begin(), c.shortcuts.end(), [&] (const Shortcut &s1, const Shortcut &s2) { return collator.compare(s1.friendlyName, s2.friendlyName) < 0; }); @@ -418,6 +421,7 @@ m_globalAccelInterface->doRegister(actionId); m_globalAccelInterface->unRegister(actionId); QCollator collator; + collator.setCaseSensitivity(Qt::CaseInsensitive); auto pos = std::lower_bound(m_components.begin(), m_components.end(), displayName, [&] (const Component &c, const QString &name) { return c.type != i18n("System Services") && collator.compare(c.friendlyName, name) < 0; });