Doc: Minor corrections custom sort filter example
Task-number: QTBUG-60635 Change-Id: I17a69f85663eaa92e92b4e97385c21a729405e1f Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
This commit is contained in:
parent
a17f892bc5
commit
1fe6a75fec
Binary file not shown.
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 22 KiB |
@ -75,7 +75,7 @@
|
|||||||
QSortFilterProxyModel's default implementations of functions are
|
QSortFilterProxyModel's default implementations of functions are
|
||||||
written so that they call the equivalent functions in the relevant
|
written so that they call the equivalent functions in the relevant
|
||||||
source model. This simple proxying mechanism may need to be
|
source model. This simple proxying mechanism may need to be
|
||||||
overridden for source models with more complex behavior; in this
|
overridden for source models with more complex behavior. In this
|
||||||
example we derive from the QSortFilterProxyModel class to ensure
|
example we derive from the QSortFilterProxyModel class to ensure
|
||||||
that our filter can recognize a valid range of dates, and to
|
that our filter can recognize a valid range of dates, and to
|
||||||
control the sorting behavior.
|
control the sorting behavior.
|
||||||
@ -170,7 +170,7 @@
|
|||||||
|
|
||||||
We implement two private slots, \c textFilterChanged() and \c
|
We implement two private slots, \c textFilterChanged() and \c
|
||||||
dateFilterChanged(), to respond to the user changing the filter
|
dateFilterChanged(), to respond to the user changing the filter
|
||||||
pattern, case sensitivity or any of the dates. In addition, we
|
pattern, case sensitivity, or any of the dates. In addition, we
|
||||||
implement a public \c setSourceModel() convenience function to set
|
implement a public \c setSourceModel() convenience function to set
|
||||||
up the model/ view relation.
|
up the model/ view relation.
|
||||||
|
|
||||||
@ -197,7 +197,7 @@
|
|||||||
\snippet itemviews/customsortfiltermodel/window.cpp 1
|
\snippet itemviews/customsortfiltermodel/window.cpp 1
|
||||||
|
|
||||||
The QTreeView class provides a default model/view implementation
|
The QTreeView class provides a default model/view implementation
|
||||||
of a tree view; our view implements a tree representation of items
|
of a tree view. Our view implements a tree representation of items
|
||||||
in the application's source model.
|
in the application's source model.
|
||||||
|
|
||||||
\snippet itemviews/customsortfiltermodel/window.cpp 2
|
\snippet itemviews/customsortfiltermodel/window.cpp 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user