QML example "table-view": simplify initial sort
This commit is contained in:
parent
0ad3c10f40
commit
f4550494ae
2 changed files with 1 additions and 1 deletions
|
|
@ -36,6 +36,7 @@ ApplicationWindow {
|
|||
|
||||
function sort() { Lisp.call("table:sort-column", getColumn(sortIndicatorColumn).role, sortIndicatorOrder) }
|
||||
|
||||
Component.onCompleted: sort()
|
||||
onSortIndicatorOrderChanged: sort()
|
||||
onSortIndicatorColumnChanged: sort()
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,6 @@
|
|||
(add-books)
|
||||
(|setFilterCaseSensitivity| *sort-filter-model* |Qt.CaseInsensitive|)
|
||||
(|setSourceModel| *sort-filter-model* *book-model*)
|
||||
(sort-column "title") ; initial sort
|
||||
;; view
|
||||
(setf qml:*quick-view* (qnew "QQmlApplicationEngine"))
|
||||
(|setContextProperty| (|rootContext| qml:*quick-view*) "sortFilterModel" *sort-filter-model*)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue