summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rosca <[email protected]>2017-01-02 11:50:46 +0100
committerDavid Rosca <[email protected]>2017-01-03 18:55:09 +0100
commita54b04dd86c140d8f73913ae3f45c529cab7728f (patch)
tree7694eb458be8ecc4bc5f85b27684a5918ff85b2b
parentf534640c6d6f3f69ef8eee1e6de7d747f256ce68 (diff)
AppletConfig: Use correct icon state for category icons
QIcon::Selected should only be used when current item && active focus. Differential Revision: https://phabricator.kde.org/D3917
-rw-r--r--desktoppackage/contents/configuration/ConfigCategoryDelegate.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktoppackage/contents/configuration/ConfigCategoryDelegate.qml b/desktoppackage/contents/configuration/ConfigCategoryDelegate.qml
index cf1f702..0d4a0cd 100644
--- a/desktoppackage/contents/configuration/ConfigCategoryDelegate.qml
+++ b/desktoppackage/contents/configuration/ConfigCategoryDelegate.qml
@@ -124,7 +124,7 @@ MouseArea {
width: units.iconSizes.medium
height: width
icon: model.icon
- state: current ? QIconItem.SelectedState : QIconItem.DefaultState
+ state: current && categoriesScroll.activeFocus ? QIconItem.SelectedState : QIconItem.DefaultState
}
QtControls.Label {