mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 18:42:55 +02:00
persist sort info for tablet re-opening, and start with column 1
This commit is contained in:
parent
dc754cff5f
commit
5be952c4e8
1 changed files with 12 additions and 2 deletions
|
@ -58,6 +58,8 @@ Rectangle {
|
||||||
category: "pal"
|
category: "pal"
|
||||||
property bool filtered: false
|
property bool filtered: false
|
||||||
property int nearDistance: 30
|
property int nearDistance: 30
|
||||||
|
property int sortIndicatorColumn: 1
|
||||||
|
property int sortIndicatorOrder: Qt.AscendingOrder
|
||||||
}
|
}
|
||||||
function refreshWithFilter() {
|
function refreshWithFilter() {
|
||||||
// We should just be able to set settings.filtered to filter.checked, but see #3249, so send to .js for saving.
|
// We should just be able to set settings.filtered to filter.checked, but see #3249, so send to .js for saving.
|
||||||
|
@ -192,8 +194,16 @@ Rectangle {
|
||||||
centerHeaderText: true
|
centerHeaderText: true
|
||||||
sortIndicatorVisible: true
|
sortIndicatorVisible: true
|
||||||
headerVisible: true
|
headerVisible: true
|
||||||
onSortIndicatorColumnChanged: sortModel()
|
sortIndicatorColumn: settings.sortIndicatorColumn
|
||||||
onSortIndicatorOrderChanged: sortModel()
|
sortIndicatorOrder: settings.sortIndicatorOrder
|
||||||
|
onSortIndicatorColumnChanged: {
|
||||||
|
settings.sortIndicatorColumn = sortIndicatorColumn
|
||||||
|
sortModel()
|
||||||
|
}
|
||||||
|
onSortIndicatorOrderChanged: {
|
||||||
|
settings.sortIndicatorOrder = sortIndicatorOrder
|
||||||
|
sortModel()
|
||||||
|
}
|
||||||
|
|
||||||
TableViewColumn {
|
TableViewColumn {
|
||||||
role: "avgAudioLevel"
|
role: "avgAudioLevel"
|
||||||
|
|
Loading…
Reference in a new issue