mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:43:03 +02:00
Merge pull request #12910 from zfox23/MS12217_letterboxMessageFix
Only dismiss letterbox when clicking on grey areas
This commit is contained in:
commit
6d151f022d
1 changed files with 18 additions and 7 deletions
|
@ -30,6 +30,16 @@ Item {
|
||||||
color: "black"
|
color: "black"
|
||||||
opacity: 0.5
|
opacity: 0.5
|
||||||
radius: popupRadius
|
radius: popupRadius
|
||||||
|
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent;
|
||||||
|
hoverEnabled: true;
|
||||||
|
acceptedButtons: Qt.LeftButton;
|
||||||
|
propagateComposedEvents: false;
|
||||||
|
onClicked: {
|
||||||
|
letterbox.visible = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: textContainer;
|
id: textContainer;
|
||||||
|
@ -38,6 +48,14 @@ Item {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
radius: popupRadius
|
radius: popupRadius
|
||||||
color: "white"
|
color: "white"
|
||||||
|
|
||||||
|
// Prevent dismissing the popup by clicking on the textContainer
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent;
|
||||||
|
hoverEnabled: true;
|
||||||
|
propagateComposedEvents: false;
|
||||||
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: contentContainer
|
id: contentContainer
|
||||||
width: parent.width - 50
|
width: parent.width - 50
|
||||||
|
@ -135,11 +153,4 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
acceptedButtons: Qt.LeftButton
|
|
||||||
onClicked: {
|
|
||||||
letterbox.visible = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue