Skip to content

Commit

Permalink
[ui] Application: Added mouse area on menu bar area to allow forcing …
Browse files Browse the repository at this point in the history
…focus to the parent item when clicking
  • Loading branch information
waaake committed Feb 6, 2025
1 parent 1931ce0 commit c1e28b0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions meshroom/ui/qml/Application.qml
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,13 @@ Page {
}

Rectangle {
id: menuSpacer
MouseArea {
anchors.fill: parent
onClicked: {
menuSpacer.forceActiveFocus();
}
}
Layout.fillWidth: true
Layout.fillHeight: true
color: Qt.darker(activePalette.window, 1.15)
Expand Down Expand Up @@ -973,6 +980,12 @@ Page {
}

Rectangle {
MouseArea {
anchors.fill: parent
onClicked: {
menuSpacer.forceActiveFocus();
}
}
Layout.fillWidth: true
Layout.fillHeight: true
color: Qt.darker(activePalette.window, 1.15)
Expand Down Expand Up @@ -1007,6 +1020,7 @@ Page {
// Cache Folder
RowLayout {
spacing: 0
width: parent.width
MaterialToolButton {
font.pointSize: 8
text: MaterialIcons.folder_open
Expand All @@ -1021,6 +1035,17 @@ Page {
color: Qt.darker(palette.text, 1.2)
background: Item {}
}

Item {
Layout.fillWidth: true
Layout.fillHeight: true
MouseArea {
anchors.fill: parent
onClicked: {
footer.forceActiveFocus();
}
}
}
}
}

Expand Down

0 comments on commit c1e28b0

Please sign in to comment.