Commit 59ac49ac authored by David Edmundson's avatar David Edmundson
Browse files

[kicker] Honor isEnabled property

From D20237
parent ab7c6ad4
......@@ -30,6 +30,8 @@ Item {
width: GridView.view.cellWidth
height: width
enabled: !model.disabled
property bool showLabel: true
property int itemIndex: model.index
......
......@@ -30,7 +30,8 @@ Item {
height: isSeparator ? separatorHeight : itemHeight
width: ListView.view.width
enabled: !isSeparator
// if it's not disabled and is either a leaf node or a node with children
enabled: !isSeparator && !model.disabled && (!isParent || (isParent && hasChildren))
signal actionTriggered(string actionId, variant actionArgument)
signal aboutToShowActionMenu(variant actionMenu)
......
......@@ -28,6 +28,8 @@ import "code/tools.js" as Tools
Item {
id: listItem
enabled: !model.disabled
width: ListView.view.width
height: (units.smallSpacing * 2) + Math.max(elementIcon.height, titleElement.implicitHeight + subTitleElement.implicitHeight)
......
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