diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2016-12-15 14:09:37 +0100 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2016-12-15 14:09:37 +0100 |
| commit | 28a220d4ac1b3062d1bfe236ef2726d5b05d9565 (patch) | |
| tree | 2a318070af9aecdde597d610c7e4c013c29c2196 /components/TableDropdown.qml | |
| parent | a0f35aa776a2c1df9540135540ba0e18990f263e (diff) | |
| download | monzero-gui-28a220d4ac1b3062d1bfe236ef2726d5b05d9565.tar.gz monzero-gui-28a220d4ac1b3062d1bfe236ef2726d5b05d9565.tar.xz monzero-gui-28a220d4ac1b3062d1bfe236ef2726d5b05d9565.zip | |
Addressbook: New tooltip implementation (old didn't work on ubuntu)
Diffstat (limited to 'components/TableDropdown.qml')
| -rw-r--r-- | components/TableDropdown.qml | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/components/TableDropdown.qml b/components/TableDropdown.qml index de375ed8..c4396008 100644 --- a/components/TableDropdown.qml +++ b/components/TableDropdown.qml @@ -120,8 +120,8 @@ Item { repeat: true running: false onTriggered: { - if(((tipItem.visible && !tipItem.containsMouse) || !tipItem.visible) && !mouseArea.containsMouse) { - tipItem.visible = false + if(((appWindow.toolTip.visible && !appWindow.toolTip.containsMouse) || !appWindow.toolTip.visible) && !mouseArea.containsMouse) { + appWindow.toolTip.visible = false dropdown.expanded = false currentIndex = -1 timer.stop() @@ -210,14 +210,15 @@ Item { onContainsMouseChanged: { if(containsMouse) { - var pos = rootItem.mapFromItem(delegate, 30, -20) - tipItem.text = name - tipItem.x = pos.x + appWindow.x - if(tipItem.height > 30) - pos.y -= tipItem.height - 30 - tipItem.y = pos.y + appWindow.y - tipItem.visible = true - tipItem.raise() + var pos = rootItem.mapFromItem(delegate, 30, -25) + appWindow.toolTip.text = name + appWindow.toolTip.x = pos.x - appWindow.toolTip.width +// if(appWindow.toolTip.height > 30) +// pos.y -= appWindow.toolTip.height - 30 + appWindow.toolTip.y = pos.y + appWindow.toolTip.visible = true + appWindow.toolTip.z = 3 + } } |
