summaryrefslogtreecommitdiff
path: root/src/controls/Private/ColumnMenuContent.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls/Private/ColumnMenuContent.qml')
-rw-r--r--src/controls/Private/ColumnMenuContent.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/controls/Private/ColumnMenuContent.qml b/src/controls/Private/ColumnMenuContent.qml
index 9e29361d..bb21dcb9 100644
--- a/src/controls/Private/ColumnMenuContent.qml
+++ b/src/controls/Private/ColumnMenuContent.qml
@@ -61,7 +61,7 @@ Item {
width: Math.max(list.contentWidth, minWidth)
height: Math.min(list.contentHeight, fittedMaxHeight) + 2 * margin
- readonly property int currentIndex: root.__currentIndex
+ readonly property int currentIndex: menu.__currentIndex
property Item currentItem: null
readonly property int itemHeight: (list.count > 0 && list.contentItem.children[0]) ? list.contentItem.children[0].height : 23
readonly property int fittingItems: Math.floor((maxHeight - downScroller.height) / itemHeight)
@@ -77,11 +77,11 @@ Item {
currentItem.closeSubMenu()
currentItem = list.itemAt(pos.x, pos.y)
if (currentItem) {
- root.__currentIndex = currentItem.menuItemIndex
+ menu.__currentIndex = currentItem.menuItemIndex
if (currentItem.isSubmenu && !currentItem.menuItem.__popupVisible)
currentItem.showSubMenu(false)
} else {
- root.__currentIndex = -1
+ menu.__currentIndex = -1
}
}
}
@@ -123,7 +123,7 @@ Item {
onExited: {
if (currentItem && !currentItem.menuItem.__popupVisible) {
currentItem = null
- root.__currentIndex = -1
+ menu.__currentIndex = -1
}
}