|
|
|
@ -555,9 +555,9 @@ ApplicationWindow {
@@ -555,9 +555,9 @@ ApplicationWindow {
|
|
|
|
|
//------------------------------------------------------------------------- |
|
|
|
|
//-- Indicator Popups |
|
|
|
|
|
|
|
|
|
function showPopUp(dropItem, centerX) { |
|
|
|
|
indicatorDropdown.centerX = centerX |
|
|
|
|
function showPopUp(item, dropItem) { |
|
|
|
|
indicatorDropdown.currentIndicator = dropItem |
|
|
|
|
indicatorDropdown.currentItem = item |
|
|
|
|
indicatorDropdown.open() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -567,8 +567,8 @@ ApplicationWindow {
@@ -567,8 +567,8 @@ ApplicationWindow {
|
|
|
|
|
modal: true |
|
|
|
|
focus: true |
|
|
|
|
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside |
|
|
|
|
property var currentIndicator: null |
|
|
|
|
property real centerX: 0 |
|
|
|
|
property var currentItem: null |
|
|
|
|
property var currentIndicator: null |
|
|
|
|
background: Rectangle { |
|
|
|
|
width: loader.width |
|
|
|
|
height: loader.height |
|
|
|
@ -577,7 +577,7 @@ ApplicationWindow {
@@ -577,7 +577,7 @@ ApplicationWindow {
|
|
|
|
|
Loader { |
|
|
|
|
id: loader |
|
|
|
|
onLoaded: { |
|
|
|
|
indicatorDropdown.x = mapFromGlobal(indicatorDropdown.centerX, 0).x |
|
|
|
|
indicatorDropdown.x = mainWindow.contentItem.mapFromItem(indicatorDropdown.currentItem, 0, 0).x - (loader.width * 0.5) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
onOpened: { |
|
|
|
|