Only dismiss letterbox when clicking on grey areas

This commit is contained in:
Zach Fox 2018-04-16 15:07:45 -07:00
parent 19aa49832b
commit 93cf399fd6

View file

@ -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;
}