tabledropdown fix

This commit is contained in:
marcin
2014-07-23 13:01:20 +02:00
parent d69870717f
commit 74b6483b18
5 changed files with 10 additions and 39 deletions

View File

@@ -89,13 +89,14 @@ Item {
Timer {
id: timer
interval: 50
repeat: false
repeat: true
running: false
onTriggered: {
if(((tipItem.visible && !tipItem.containsMouse) || !tipItem.visible) && !mouseArea.containsMouse) {
tipItem.visible = false
dropdown.expanded = false
currentIndex = -1
timer.stop()
}
}
}
@@ -119,9 +120,9 @@ Item {
}
}
onExited: timer.start()
preventStealing: true
z: 1
onExited: timer.start()
Item {
id: dropArea
@@ -185,26 +186,8 @@ Item {
pos.y -= tipItem.height - 30
tipItem.y = pos.y + appWindow.y
tipItem.visible = true
} else {
tipItem.visible = false
}
}
// MouseArea {
// id: delegateArea
// hoverEnabled: true
// anchors.fill: parent
// propagateComposedEvents: true
// onEntered: {
// }
// onExited: tipItem.visible = false
// onClicked: {
// dropdown.optionClicked(index)
// tipItem.visible = false
// dropdown.expanded = false
// }
// }
}
}
}