mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +02:00
[ui] Application: Added mouse area on menu bar area to allow forcing focus to the parent item when clicking
This commit is contained in:
parent
1931ce05ce
commit
c1e28b07e9
1 changed files with 25 additions and 0 deletions
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -1007,6 +1020,7 @@ Page {
|
|||
// Cache Folder
|
||||
RowLayout {
|
||||
spacing: 0
|
||||
width: parent.width
|
||||
MaterialToolButton {
|
||||
font.pointSize: 8
|
||||
text: MaterialIcons.folder_open
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue