mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Embedded: patch advanced options to use Popup instead of top level window
Cannot have multiple top level windows on eglfs platform.
This commit is contained in:
parent
b03ca9fb7e
commit
460c625cdf
1 changed files with 29 additions and 0 deletions
|
@ -0,0 +1,29 @@
|
||||||
|
diff --git a/src/OptionsPopup.qml b/src/OptionsPopup.qml
|
||||||
|
index 568d1cd..9e36607 100644
|
||||||
|
--- a/src/OptionsPopup.qml
|
||||||
|
+++ b/src/OptionsPopup.qml
|
||||||
|
@@ -10,13 +10,19 @@ import QtQuick.Controls.Material 2.2
|
||||||
|
import QtQuick.Window 2.15
|
||||||
|
import "qmlcomponents"
|
||||||
|
|
||||||
|
-Window {
|
||||||
|
+Popup {
|
||||||
|
id: popup
|
||||||
|
width: cl.implicitWidth+cl.spacing
|
||||||
|
- minimumWidth: width
|
||||||
|
- maximumWidth: width
|
||||||
|
- minimumHeight: 125
|
||||||
|
- height: Math.min(750, cl.implicitHeight)
|
||||||
|
+ /* Only in embedded version */
|
||||||
|
+ x: (parent.width-width)/2
|
||||||
|
+ y: 10
|
||||||
|
+ height: parent.height-20
|
||||||
|
+ property string title
|
||||||
|
+
|
||||||
|
+ function show() { open() }
|
||||||
|
+ function raise() { }
|
||||||
|
+ /* */
|
||||||
|
+
|
||||||
|
title: qsTr("Advanced options")
|
||||||
|
|
||||||
|
property bool initialized: false
|
Loading…
Add table
Add a link
Reference in a new issue