Skip to content

Commit c75e471

Browse files
committed
UI: Swap Setup and Preferences on the Settings dialog
1 parent 8d8af99 commit c75e471

1 file changed

Lines changed: 110 additions & 110 deletions

File tree

ui.qml.in

Lines changed: 110 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -3672,7 +3672,7 @@ Item {
36723672
clip: true
36733673

36743674
Repeater {
3675-
model: ["Preferences", "Setup"]
3675+
model: ["Setup", "Preferences"]
36763676

36773677
TabButton {
36783678
text: modelData
@@ -3695,115 +3695,6 @@ Item {
36953695
Layout.fillHeight: true
36963696
clip: true
36973697

3698-
ScrollView {
3699-
Layout.fillWidth: true
3700-
Layout.fillHeight: true
3701-
contentWidth: availableWidth
3702-
clip: true
3703-
3704-
ColumnLayout {
3705-
anchors.fill: parent
3706-
3707-
IntTextField {
3708-
label: "Speed dial max"
3709-
valueUnit: vescConfig.speedUnit
3710-
sourceValue: preferences.speedDialMax
3711-
minValue: 10
3712-
maxValue: 200
3713-
onValueChanged: {
3714-
preferences.speedDialMax = value
3715-
}
3716-
}
3717-
3718-
RightSwitch {
3719-
id: prefSwapAdcs
3720-
label: "Swap Footpad Sensor ADCs"
3721-
}
3722-
3723-
OptionDescription {
3724-
visible: prefSwapAdcs.checked
3725-
text: "Note: This swaps only the sensor visualization. You should swap your ADC1/2 physical connection, as this way, for example, your Konamies (sensor tap codes that control the board) will be reversed as well."
3726-
}
3727-
3728-
RightSwitch {
3729-
id: prefShowBattVoltage
3730-
checked: true
3731-
label: "Show battery voltage"
3732-
}
3733-
3734-
RightSwitch {
3735-
id: prefShowBattVoltagePerCell
3736-
label: "Show battery voltage per cell"
3737-
}
3738-
3739-
RightSwitch {
3740-
id: prefBattCurrentLog
3741-
checked: true
3742-
label: "Use logarithmic scale for battery current bar"
3743-
}
3744-
3745-
IntTextField {
3746-
label: "Temperature warning offset"
3747-
valueUnit: "°C"
3748-
sourceValue: preferences.tempWarningOffset
3749-
onValueChanged: {
3750-
preferences.tempWarningOffset = value
3751-
}
3752-
}
3753-
3754-
OptionDescription {
3755-
text: "Motor/Controller temperatures will be highlighted red if above TEMP - OFFSET, where TEMP is your Motor/MOSFET Temp Cutoff Start in Motor config. The package beeps when temperatures cross the TEMP - 3°C threshold and pushback triggers at TEMP - 2°C."
3756-
}
3757-
3758-
RowLayout {
3759-
Layout.fillWidth: true
3760-
Layout.rightMargin: 20
3761-
3762-
LText {
3763-
text: "Number of tune slots"
3764-
}
3765-
3766-
Slider {
3767-
id: prefTuneSlotCount
3768-
Layout.fillWidth: true
3769-
3770-
from: 2
3771-
to: tuneManager.maxTunes
3772-
value: 4
3773-
stepSize: 1
3774-
}
3775-
3776-
LText {
3777-
text: prefTuneSlotCount.value
3778-
font.pointSize: 16
3779-
}
3780-
}
3781-
3782-
RightSwitch {
3783-
id: prefShowTuneDiffCount
3784-
checked: false
3785-
label: "Show changed options count on tunes"
3786-
}
3787-
3788-
IntTextField {
3789-
label: "Realtime plot maximum window"
3790-
valueUnit: "minutes"
3791-
sourceValue: preferences.plotMaxWindowMinutes
3792-
minValue: 1
3793-
maxValue: 1000
3794-
onValueChanged: {
3795-
preferences.plotMaxWindowMinutes = value
3796-
}
3797-
}
3798-
3799-
RightSwitch {
3800-
id: prefShowWelcomeDialog
3801-
checked: true
3802-
label: "Show Welcome dialog"
3803-
}
3804-
}
3805-
}
3806-
38073698
ScrollView {
38083699
Layout.fillWidth: true
38093700
Layout.fillHeight: true
@@ -4008,6 +3899,115 @@ Item {
40083899
//}
40093900
}
40103901
}
3902+
3903+
ScrollView {
3904+
Layout.fillWidth: true
3905+
Layout.fillHeight: true
3906+
contentWidth: availableWidth
3907+
clip: true
3908+
3909+
ColumnLayout {
3910+
anchors.fill: parent
3911+
3912+
IntTextField {
3913+
label: "Speed dial max"
3914+
valueUnit: vescConfig.speedUnit
3915+
sourceValue: preferences.speedDialMax
3916+
minValue: 10
3917+
maxValue: 200
3918+
onValueChanged: {
3919+
preferences.speedDialMax = value
3920+
}
3921+
}
3922+
3923+
RightSwitch {
3924+
id: prefSwapAdcs
3925+
label: "Swap Footpad Sensor ADCs"
3926+
}
3927+
3928+
OptionDescription {
3929+
visible: prefSwapAdcs.checked
3930+
text: "Note: This swaps only the sensor visualization. You should swap your ADC1/2 physical connection, as this way, for example, your Konamies (sensor tap codes that control the board) will be reversed as well."
3931+
}
3932+
3933+
RightSwitch {
3934+
id: prefShowBattVoltage
3935+
checked: true
3936+
label: "Show battery voltage"
3937+
}
3938+
3939+
RightSwitch {
3940+
id: prefShowBattVoltagePerCell
3941+
label: "Show battery voltage per cell"
3942+
}
3943+
3944+
RightSwitch {
3945+
id: prefBattCurrentLog
3946+
checked: true
3947+
label: "Use logarithmic scale for battery current bar"
3948+
}
3949+
3950+
IntTextField {
3951+
label: "Temperature warning offset"
3952+
valueUnit: "°C"
3953+
sourceValue: preferences.tempWarningOffset
3954+
onValueChanged: {
3955+
preferences.tempWarningOffset = value
3956+
}
3957+
}
3958+
3959+
OptionDescription {
3960+
text: "Motor/Controller temperatures will be highlighted red if above TEMP - OFFSET, where TEMP is your Motor/MOSFET Temp Cutoff Start in Motor config. The package beeps when temperatures cross the TEMP - 3°C threshold and pushback triggers at TEMP - 2°C."
3961+
}
3962+
3963+
RowLayout {
3964+
Layout.fillWidth: true
3965+
Layout.rightMargin: 20
3966+
3967+
LText {
3968+
text: "Number of tune slots"
3969+
}
3970+
3971+
Slider {
3972+
id: prefTuneSlotCount
3973+
Layout.fillWidth: true
3974+
3975+
from: 2
3976+
to: tuneManager.maxTunes
3977+
value: 4
3978+
stepSize: 1
3979+
}
3980+
3981+
LText {
3982+
text: prefTuneSlotCount.value
3983+
font.pointSize: 16
3984+
}
3985+
}
3986+
3987+
RightSwitch {
3988+
id: prefShowTuneDiffCount
3989+
checked: false
3990+
label: "Show changed options count on tunes"
3991+
}
3992+
3993+
IntTextField {
3994+
label: "Realtime plot maximum window"
3995+
valueUnit: "minutes"
3996+
sourceValue: preferences.plotMaxWindowMinutes
3997+
minValue: 1
3998+
maxValue: 1000
3999+
onValueChanged: {
4000+
preferences.plotMaxWindowMinutes = value
4001+
}
4002+
}
4003+
4004+
RightSwitch {
4005+
id: prefShowWelcomeDialog
4006+
checked: true
4007+
label: "Show Welcome dialog"
4008+
}
4009+
}
4010+
}
40114011
}
40124012
}
40134013
}

0 commit comments

Comments
 (0)