Skip to content

Commit

Permalink
random tries
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Nov 1, 2023
1 parent b6a4e56 commit 28f7955
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 24 deletions.
4 changes: 2 additions & 2 deletions app/qml/PanelItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import "." // import InputStyle singleton

Rectangle {
id: root
height: InputStyle.rowHeight
width: parent.width
// height: InputStyle.rowHeight
// width: parent.width
color: InputStyle.clrPanelMain

property string text: ""
Expand Down
1 change: 0 additions & 1 deletion app/qml/SettingsComboBoxItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import "." // import InputStyle singleton
Rectangle {
id: root

height: InputStyle.settingsPanelActionable
color: InputStyle.clrPanelMain

property int value
Expand Down
3 changes: 1 addition & 2 deletions app/qml/SettingsHeaderItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ import "." // import InputStyle singleton

Rectangle {
id: root
height: InputStyle.rowHeight
width: parent.width

color: InputStyle.clrPanelMain

property string text: ""
Expand Down
1 change: 0 additions & 1 deletion app/qml/SettingsNumberItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import "." // import InputStyle singleton
Rectangle {
id: root

height: InputStyle.settingsPanelActionable
color: InputStyle.clrPanelMain

property double value
Expand Down
65 changes: 47 additions & 18 deletions app/qml/SettingsPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,23 @@ Item {
color: InputStyle.panelBackgroundDark
}

Column {
ColumnLayout {
id: settingListContent
anchors.fill: parent
spacing: 1

// Header "GPS"
PanelItem {
Layout.fillWidth: true
Layout.preferredHeight: root.rowHeight
color: InputStyle.panelBackgroundLight
text: qsTr("GPS")
bold: true
}

PanelItem {
height: root.rowHeight
width: parent.width
Layout.fillWidth: true
Layout.preferredHeight: root.rowHeight
color: InputStyle.clrPanelMain
text: qsTr("Follow GPS with map")

Expand All @@ -124,8 +126,9 @@ Item {
}

PanelItem {
height: root.rowHeight
width: parent.width
Layout.fillWidth: true
Layout.preferredHeight: root.rowHeight

color: InputStyle.clrPanelMain
text: qsTr("GPS accuracy")

Expand Down Expand Up @@ -180,8 +183,8 @@ Item {
}

PanelItem {
height: root.rowHeight
width: parent.width
Layout.fillWidth: true
Layout.preferredHeight: root.rowHeight
text: qsTr("Accuracy threshold")

MouseArea {
Expand All @@ -208,8 +211,8 @@ Item {
}

PanelItem {
height: root.rowHeight
width: parent.width
Layout.fillWidth: true
Layout.preferredHeight: root.rowHeight
text: qsTr("Show accuracy warning")

SettingsSwitch {
Expand All @@ -229,8 +232,8 @@ Item {
}

PanelItem {
height: root.rowHeight
width: parent.width
Layout.fillWidth: true
Layout.preferredHeight: root.rowHeight
color: InputStyle.clrPanelMain
text: qsTr("Select GPS receiver")

Expand All @@ -241,7 +244,8 @@ Item {
}

SettingsNumberItem {
width: parent.width
Layout.fillWidth: true
Layout.preferredHeight: InputStyle.settingsPanelActionable

title: qsTr("GPS antenna height")
description: qsTr("Includes pole height and GPS receiver's antenna height")
Expand All @@ -255,12 +259,16 @@ Item {

// Header "Streaming mode"
SettingsHeaderItem {
Layout.fillWidth: true
Layout.preferredHeight: root.rowHeight

color: InputStyle.panelBackgroundLight
text: qsTr("Streaming mode")
}

SettingsComboBoxItem {
width: parent.width
Layout.fillWidth: true
Layout.preferredHeight: InputStyle.settingsPanelActionable

title: qsTr("Interval type")
description: qsTr("Choose action when to add a new point")
Expand All @@ -272,7 +280,8 @@ Item {
}

SettingsNumberItem {
width: parent.width
Layout.fillWidth: true
Layout.preferredHeight: InputStyle.settingsPanelActionable

title: qsTr("Line rec. interval")
description: __appSettings.intervalType === StreamingIntervalType.Distance ? qsTr("in meters") : qsTr("in seconds")
Expand All @@ -286,14 +295,18 @@ Item {

// Header "Recording"
PanelItem {
Layout.fillWidth: true
Layout.preferredHeight: root.rowHeight

color: InputStyle.panelBackgroundLight
text: qsTr("Recording")
bold: true
}

PanelItem {
height: root.rowHeight
width: parent.width
Layout.fillWidth: true
Layout.preferredHeight: root.rowHeight

color: InputStyle.clrPanelMain
text: qsTr("Reuse last value option")

Expand All @@ -314,8 +327,9 @@ Item {
}

PanelItem {
height: root.rowHeight
width: parent.width
Layout.fillWidth: true
Layout.preferredHeight: root.rowHeight

color: InputStyle.clrPanelMain
text: qsTr( "Automatically sync changes" )

Expand All @@ -337,13 +351,19 @@ Item {

// Delimeter
PanelItem {
Layout.fillWidth: true
Layout.preferredHeight: root.rowHeight

color: InputStyle.panelBackgroundLight
text: ""
height: root.rowHeight / 3
}

// App info
PanelItem {
Layout.fillWidth: true
Layout.preferredHeight: root.rowHeight

text: qsTr("About")
MouseArea {
anchors.fill: parent
Expand All @@ -362,6 +382,9 @@ Item {

// Privacy Policy
PanelItem {
Layout.fillWidth: true
Layout.preferredHeight: root.rowHeight

text: qsTr("Privacy policy")
MouseArea {
anchors.fill: parent
Expand All @@ -371,6 +394,9 @@ Item {

// Terms of Service
PanelItem {
Layout.fillWidth: true
Layout.preferredHeight: root.rowHeight

text: qsTr("Terms of service")
MouseArea {
anchors.fill: parent
Expand All @@ -380,6 +406,9 @@ Item {

// Debug/Logging
PanelItem {
Layout.fillWidth: true
Layout.preferredHeight: root.rowHeight

text: qsTr("Diagnostic log")
MouseArea {
anchors.fill: parent
Expand Down
7 changes: 7 additions & 0 deletions app/workspacesproxymodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ void WorkspacesProxyModel::setSearchExpression( QString searchExpression )

mSearchExpression = searchExpression;
setFilterFixedString( mSearchExpression );

// for some reason in Qt 6.5.3 QML Repeater does not
// delete all items that are removed from proxy model
// immediately without invalidate() command called
// see https://github.com/MerginMaps/input/issues/2893
invalidate();

emit searchExpressionChanged( mSearchExpression );
}

Expand Down

1 comment on commit 28f7955

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 23.11.477511 just submitted!

Please sign in to comment.