diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2010-11-10 10:21:53 (GMT) |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2011-04-12 15:08:34 (GMT) |
commit | b00089261eafbdf5f92ed94d7fb20b402bfcaeb2 (patch) | |
tree | 649e498810da99c86286356c90f60538626efbd3 /doc/src/frameworks-technologies | |
parent | e89a2b72050dd782da16ff24bc2eb84dc36ed6a5 (diff) | |
download | Qt-b00089261eafbdf5f92ed94d7fb20b402bfcaeb2.zip Qt-b00089261eafbdf5f92ed94d7fb20b402bfcaeb2.tar.gz Qt-b00089261eafbdf5f92ed94d7fb20b402bfcaeb2.tar.bz2 |
Add the QIdentityProxyModel.
Older commit history is in KDE svn:
http://websvn.kde.org/trunk/KDE/kdelibs/kdeui/itemviews/kidentityproxymodel.cpp?view=log
Ammended to update the license headers.
Merge-request: 900
Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>
Diffstat (limited to 'doc/src/frameworks-technologies')
-rw-r--r-- | doc/src/frameworks-technologies/model-view-programming.qdoc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/src/frameworks-technologies/model-view-programming.qdoc b/doc/src/frameworks-technologies/model-view-programming.qdoc index 92067b9..42404b0 100644 --- a/doc/src/frameworks-technologies/model-view-programming.qdoc +++ b/doc/src/frameworks-technologies/model-view-programming.qdoc @@ -1934,6 +1934,13 @@ \l{QSortFilterProxyModel::lessThan()}{lessThan()} function to perform custom comparisons. + \section3 Custom data models + + QIdentityProxyModel instances do not sort or filter the structure of the source model, + but provide a base class for creating a data proxy. This could be useful on top of a + QFileSystemModel for example to provide different colours for the BackgroundRole for + different types of files. + \section1 Model subclassing reference Model subclasses need to provide implementations of many of the virtual functions |