aboutsummaryrefslogtreecommitdiffstats
path: root/examples/controls/gallery/gallery.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/controls/gallery/gallery.qml')
-rw-r--r--examples/controls/gallery/gallery.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/controls/gallery/gallery.qml b/examples/controls/gallery/gallery.qml
index d40e7f9b..f9a2665e 100644
--- a/examples/controls/gallery/gallery.qml
+++ b/examples/controls/gallery/gallery.qml
@@ -90,6 +90,7 @@ ApplicationWindow {
Menu {
id: optionsMenu
x: parent.width - width
+ transformOrigin: Menu.TopRight
MenuItem {
text: "Settings"
@@ -213,12 +214,11 @@ ApplicationWindow {
height: settingsColumn.implicitHeight + topPadding + bottomPadding
modal: true
focus: true
- onPressedOutside: close()
+ closePolicy: Popup.OnEscape | Popup.OnPressOutside
contentItem: ColumnLayout {
id: settingsColumn
spacing: 20
- Keys.onEscapePressed: settingsPopup.close() // TODO: Popup::closePolicy
Label {
text: "Settings"
@@ -247,6 +247,7 @@ ApplicationWindow {
Label {
text: "Restart required"
+ color: "#e41e25"
opacity: styleBox.currentIndex !== styleBox.styleIndex ? 1.0 : 0.0
horizontalAlignment: Label.AlignHCenter
verticalAlignment: Label.AlignVCenter
@@ -290,12 +291,11 @@ ApplicationWindow {
y: window.height / 6
width: Math.min(window.width, window.height) / 3 * 2
contentHeight: aboutColumn.height
- onPressedOutside: close()
+ closePolicy: Popup.OnEscape | Popup.OnPressOutside
Column {
id: aboutColumn
spacing: 20
- Keys.onEscapePressed: aboutDialog.close() // TODO: Popup::closePolicy
Label {
text: "About"