fix flyouts on multiple monitors again?
This commit is contained in:
parent
75a94628ad
commit
c59a2c622d
6 changed files with 9 additions and 7 deletions
|
|
@ -17,7 +17,7 @@ Text {
|
|||
onHoveredChanged: {
|
||||
if (hovered && root.tooltip !== "") {
|
||||
M.FlyoutState.text = root.tooltip;
|
||||
M.FlyoutState.itemX = root.mapToGlobal(root.width / 2, 0).x;
|
||||
M.FlyoutState.itemX = root.mapToGlobal(root.width / 2, 0).x - (QsWindow.window?.screen?.x ?? 0);
|
||||
M.FlyoutState.screen = QsWindow.window?.screen ?? null;
|
||||
M.FlyoutState.visible = true;
|
||||
} else if (!hovered && root.tooltip !== "") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue