Skip to content

Commit cc6e92f

Browse files
committed
Move location of Bars checkbox into Reading Region
It makes more sense for this option to be under Reading Region. Addresses #346
1 parent b1d21fd commit cc6e92f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/kirigami_ui/PrompterPage.qml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,18 @@ Kirigami.Page {
105105
//onTriggered: viewport.overlay.toggle()
106106
tooltip: qsTr("Change reading region placement", "Reading region indicates where a talent should be reading from")
107107

108+
Kirigami.Action {
109+
id: readRegionBarsButton
110+
text: qsTr("Bars", "Configure reading region pointer indicators")
111+
checkable: true
112+
checked: parseInt(overlay.styleState)>ReadRegionOverlay.PointerStates.Pointers
113+
onTriggered: {
114+
if (parseInt(overlay.styleState)>ReadRegionOverlay.PointerStates.Pointers)
115+
overlay.styleState = parseInt(overlay.styleState) - 4;
116+
else
117+
overlay.styleState = parseInt(overlay.styleState) + 4;
118+
}
119+
}
108120
Kirigami.Action {
109121
id: readRegionTopButton
110122
icon.name: "go-up"
@@ -298,18 +310,6 @@ Kirigami.Page {
298310
viewport.prompter.restoreFocus()
299311
}
300312
}
301-
Kirigami.Action {
302-
id: readRegionBarsButton
303-
text: qsTr("Bars", "Configure reading region pointer indicators")
304-
checkable: true
305-
checked: parseInt(overlay.styleState)>ReadRegionOverlay.PointerStates.Pointers
306-
onTriggered: {
307-
if (parseInt(overlay.styleState)>ReadRegionOverlay.PointerStates.Pointers)
308-
overlay.styleState = parseInt(overlay.styleState) - 4;
309-
else
310-
overlay.styleState = parseInt(overlay.styleState) + 4;
311-
}
312-
}
313313
},
314314
Kirigami.Action {
315315
id: timerButton

0 commit comments

Comments
 (0)