mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Merge pull request #5699 from highfidelity/revert-5678-addressbar
Revert "Address bar now closes when you click outside of it"
This commit is contained in:
commit
4e0bcf5395
2 changed files with 0 additions and 22 deletions
|
@ -151,17 +151,6 @@ DialogContainer {
|
|||
}
|
||||
}
|
||||
|
||||
// Connect to parent's signals (Root.qml)
|
||||
onParentChanged: {
|
||||
// Hide the address bar when the user clicks outside it
|
||||
// Note: if the user clicks on another dialog this won't get called.
|
||||
|
||||
if (parent && parent.unhandledClick) {
|
||||
parent.unhandledClick.connect(function () {
|
||||
root.enabled = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
onVisibleChanged: {
|
||||
if (!visible) {
|
||||
addressLine.text = ""
|
||||
|
@ -176,7 +165,6 @@ DialogContainer {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
Keys.onPressed: {
|
||||
switch (event.key) {
|
||||
case Qt.Key_Escape:
|
||||
|
|
|
@ -6,16 +6,6 @@ import QtQuick 2.3
|
|||
Root {
|
||||
id: root
|
||||
anchors.fill: parent
|
||||
signal unhandledClick();
|
||||
|
||||
// Detects a mouseclick that is not handled by any child components.
|
||||
// Used by AddressBarDialog.qml to close when user clicks outside of it.
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
unhandledClick();
|
||||
}
|
||||
}
|
||||
|
||||
onParentChanged: {
|
||||
forceActiveFocus();
|
||||
|
|
Loading…
Reference in a new issue