mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-15 14:50:58 -08:00
small revisions
This commit is contained in:
parent
e28e2a4af3
commit
d961d400f1
2 changed files with 10 additions and 4 deletions
|
|
@ -3,8 +3,13 @@ INFO
|
|||
|
||||
This shows the use of a QML ApplicationWindow and a TableView.
|
||||
|
||||
The data source part is identical to the "item-model/abstract-model"
|
||||
The data source part is very similar to the "item-model/abstract-model"
|
||||
example.
|
||||
|
||||
Additionally, a QSortFilterProxyModel is used for both search
|
||||
and sorting.
|
||||
Additionally, a QSortFilterProxyModel is used for both search and sorting.
|
||||
|
||||
|
||||
RUN
|
||||
===
|
||||
|
||||
Run "table-view.lisp" from this directory.
|
||||
|
|
|
|||
|
|
@ -38,7 +38,8 @@
|
|||
(defun make-book-model ()
|
||||
(setf *book-model* (qnew "QAbstractListModel"))
|
||||
(qoverride *book-model* "rowCount(QModelIndex)"
|
||||
(lambda (index) (length *books*)))
|
||||
(lambda (index)
|
||||
(length *books*)))
|
||||
(qoverride *book-model* "data(QModelIndex,int)" ; QOVERRIDE return value is GC'd
|
||||
(lambda (index role)
|
||||
(let* ((row (|row| index))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue