Skip to content

Commit 5120735

Browse files
committed
qml: remove unused inSubPage bool
This is not used at all. This is a remnant from a time where the idea was to have the navbar encapsulated within the Wizard control, and this bool would dictate what navbutton to display. We have since moved to each page provides its navbar and its navbuttons.
1 parent 9cc991f commit 5120735

File tree

5 files changed

+0
-9
lines changed

5 files changed

+0
-9
lines changed

src/qml/components/AboutOptions.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ ColumnLayout {
5757
background: null
5858
onClicked: {
5959
introductions.incrementCurrentIndex()
60-
swipeView.inSubPage = true
6160
}
6261
}
6362
}

src/qml/controls/Wizard.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Page {
1313
background: null
1414
SwipeView {
1515
id: swipeView
16-
property bool inSubPage: false
1716
property bool finished: false
1817
anchors.fill: parent
1918
interactive: false

src/qml/pages/onboarding/OnboardingConnection.qml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ Page {
4242
textColor: Theme.color.orange
4343
onClicked: {
4444
connections.incrementCurrentIndex()
45-
swipeView.inSubPage = true
4645
}
4746
}
4847
lastPage: true
@@ -53,7 +52,6 @@ Page {
5352
text: qsTr("Done")
5453
onClicked: {
5554
connections.decrementCurrentIndex()
56-
swipeView.inSubPage = false
5755
}
5856
}
5957
}

src/qml/pages/onboarding/OnboardingCover.qml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Page {
2323
iconHeight: 24
2424
onClicked: {
2525
introductions.incrementCurrentIndex()
26-
swipeView.inSubPage = true
2726
}
2827
}
2928
bannerItem: Image {
@@ -50,7 +49,6 @@ Page {
5049
text: qsTr("Back")
5150
onClicked: {
5251
introductions.decrementCurrentIndex()
53-
swipeView.inSubPage = false
5452
}
5553
}
5654
}
@@ -60,7 +58,6 @@ Page {
6058
text: qsTr("Back")
6159
onClicked: {
6260
introductions.decrementCurrentIndex()
63-
swipeView.inSubPage = true
6461
}
6562
}
6663
}

src/qml/pages/onboarding/OnboardingStorageAmount.qml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Page {
4444
textColor: "#F7931A"
4545
onClicked: {
4646
storages.incrementCurrentIndex()
47-
swipeView.inSubPage = true
4847
}
4948
}
5049
}
@@ -55,7 +54,6 @@ Page {
5554
text: qsTr("Done")
5655
onClicked: {
5756
storages.decrementCurrentIndex()
58-
swipeView.inSubPage = false
5957
}
6058
}
6159
}

0 commit comments

Comments
 (0)