Changeset View
Changeset View
Standalone View
Standalone View
src/controls/templates/private/BackButton.qml
Show All 21 Lines | |||||
22 | 22 | | |||
23 | import org.kde.kirigami 2.2 | 23 | import org.kde.kirigami 2.2 | ||
24 | 24 | | |||
25 | Controls.ToolButton { | 25 | Controls.ToolButton { | ||
26 | id: button | 26 | id: button | ||
27 | anchors { | 27 | anchors { | ||
28 | top: parent.top | 28 | top: parent.top | ||
29 | bottom: parent.bottom | 29 | bottom: parent.bottom | ||
30 | margins: 4 | ||||
31 | left: parent.left | ||||
30 | } | 32 | } | ||
31 | width: visible ? height : 0 | 33 | width: visible ? height : 0 | ||
32 | z: 99 | 34 | z: 99 | ||
33 | enabled: !Settings.isMobile && (__appWindow.pageStack.currentIndex > 0 || applicationWindow().pageStack.contentItem.contentX > 0) | 35 | enabled: !Settings.isMobile && (__appWindow.pageStack.currentIndex > 0 || applicationWindow().pageStack.contentItem.contentX > 0) | ||
34 | implicitWidth: height | 36 | implicitWidth: height | ||
35 | visible: applicationWindow().pageStack.contentItem.contentWidth > applicationWindow().pageStack.width | 37 | visible: applicationWindow().pageStack.contentItem.contentWidth > applicationWindow().pageStack.width | ||
36 | 38 | | |||
37 | onClicked: { | 39 | onClicked: { | ||
Show All 22 Lines |