fix(Onboarding): fix the mouse back button overlay

- to follow the same logic as the onscreen Back button
This commit is contained in:
Lukáš Tinkl 2025-02-13 15:35:53 +01:00 committed by Lukáš Tinkl
parent 1eb3bbbac3
commit ac58a0bb29
2 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,8 @@
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import StatusQ 0.1
import StatusQ.Core 0.1
import StatusQ.Core.Utils 0.1 as SQUtils
import StatusQ.Controls 0.1
import StatusQ.Components 0.1
import StatusQ.Core.Theme 0.1
@ -31,12 +29,13 @@ Item {
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.BackButton
enabled: stack.depth > 1 && !stack.busy
enabled: backButton.visible
cursorShape: undefined // fall thru
onClicked: stack.pop()
}
StatusBackButton {
id: backButton
width: 44
height: 44
anchors.left: parent.left

View File

@ -135,11 +135,12 @@ Page {
anchors.fill: parent
acceptedButtons: Qt.BackButton
cursorShape: undefined // don't override the cursor coming from the stack
enabled: stack.depth > 1 && !stack.busy
enabled: backButton.visible
onClicked: stack.pop()
}
StatusBackButton {
id: backButton
width: 44
height: 44
anchors.left: parent.left