mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Only dismiss letterbox when clicking on grey areas
This commit is contained in:
parent
19aa49832b
commit
93cf399fd6
1 changed files with 39 additions and 2 deletions
|
@ -135,9 +135,46 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
// Left gray MouseArea
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
acceptedButtons: Qt.LeftButton
|
||||
anchors.left: parent.left;
|
||||
anchors.right: textContainer.left;
|
||||
anchors.top: textContainer.top;
|
||||
anchors.bottom: textContainer.bottom;
|
||||
acceptedButtons: Qt.LeftButton;
|
||||
onClicked: {
|
||||
letterbox.visible = false;
|
||||
}
|
||||
}
|
||||
// Right gray MouseArea
|
||||
MouseArea {
|
||||
anchors.left: textContainer.left;
|
||||
anchors.right: parent.left;
|
||||
anchors.top: textContainer.top;
|
||||
anchors.bottom: textContainer.bottom;
|
||||
acceptedButtons: Qt.LeftButton;
|
||||
onClicked: {
|
||||
letterbox.visible = false;
|
||||
}
|
||||
}
|
||||
// Top gray MouseArea
|
||||
MouseArea {
|
||||
anchors.left: parent.left;
|
||||
anchors.right: parent.right;
|
||||
anchors.top: parent.top;
|
||||
anchors.bottom: textContainer.top;
|
||||
acceptedButtons: Qt.LeftButton;
|
||||
onClicked: {
|
||||
letterbox.visible = false;
|
||||
}
|
||||
}
|
||||
// Bottom gray MouseArea
|
||||
MouseArea {
|
||||
anchors.left: parent.left;
|
||||
anchors.right: parent.right;
|
||||
anchors.top: textContainer.bottom;
|
||||
anchors.bottom: parent.bottom;
|
||||
acceptedButtons: Qt.LeftButton;
|
||||
onClicked: {
|
||||
letterbox.visible = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue