Skip to content

Commit

Permalink
Flow settings OSD -> Widgets first
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Nov 6, 2023
1 parent 76630ed commit 4906a66
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 23 deletions.
4 changes: 0 additions & 4 deletions qml/ui/configpopup/ConfigPopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ Rectangle {
hudOverlayGrid.regain_focus();
}

function showAppSettings(i) {
console.log("TEST show app settings:"+i);
}

function side_bar_regain_focus(){
sidebar.focus = true;
}
Expand Down
1 change: 0 additions & 1 deletion qml/ui/configpopup/qopenhd_settings/AppDevSettingsView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ ScrollView {
width: parent.width
height: parent.height
contentHeight: manageColumn.height
visible: appSettingsBar.currentIndex == 5

clip: true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ ScrollView {
width: parent.width
height: parent.height
contentHeight: generalColumn.height
visible: appSettingsBar.currentIndex == 0

clip: true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ ScrollView {
width: parent.width
height: parent.height
contentHeight: screenColumn.height
visible: appSettingsBar.currentIndex == 3

clip: true

Expand Down
20 changes: 7 additions & 13 deletions qml/ui/configpopup/qopenhd_settings/AppSettingsPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,23 @@ Rectangle {
}

TabButton {
y: 0
text: qsTr("General")
text: qsTr("Widgets")
width: implicitWidth
height: 48
font.pixelSize: 13
}

TabButton {
y: 0
text: qsTr("Vehicle")
text: qsTr("General")
width: implicitWidth
height: 48
font.pixelSize: 13
}

TabButton {
text: qsTr("Widgets")
y: 0
text: qsTr("Vehicle")
width: implicitWidth
height: 48
font.pixelSize: 13
Expand Down Expand Up @@ -104,23 +104,17 @@ Rectangle {
anchors.bottom: parent.bottom
anchors.bottomMargin: 0

currentIndex: {
// console.log("index:"+appSettingsBar.currentIndex);
// for future use to set focus for goggle support
showAppSettings(appSettingsBar.currentIndex);
currentIndex: appSettingsBar.currentIndex

return appSettingsBar.currentIndex;
AppWidgetSettingsView{
id: appWidgetSettingsView
}

AppGeneralSettingsView{
id: appGeneralSettingsView
}
AppVehicleSettingsView{
id: appVehicleSettingsView
}
AppWidgetSettingsView{
id: appWidgetSettingsView
}
AppScreenSettingsView{
id: appScreenSettingsView
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ ScrollView {
width: parent.width
height: parent.height
contentHeight: vehicleColumn.height
visible: appSettingsBar.currentIndex == 1

clip: true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ ScrollView {
contentHeight: videoColumn.height

clip: true
visible: appSettingsBar.currentIndex == 4

Item {
anchors.fill: parent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ ScrollView {
width: parent.width
height: parent.height
contentHeight: widgetColumn.height
visible: appSettingsBar.currentIndex == 2

clip: true

Expand Down

0 comments on commit 4906a66

Please sign in to comment.