diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-06-03 11:26:24 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-06-04 19:11:19 +0200 |
commit | 94dcb5454f0f8f144568dff7a9dd1316046ee197 (patch) | |
tree | 7da0e7c6708999abc9b4cd88ee7e83aa996b18e2 /src/gui/itemmodels | |
parent | 5781ef2013160ba3810ad7df399aa79be085cd6c (diff) |
Remove the deprecated QDirModel
QFileSystemModel is the documented replacement. It uses threads to
populate the model, which QDirModel doesn't.
Change-Id: I7818ecd8f849eb566ac176612f382e17a0471c47
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/gui/itemmodels')
-rw-r--r-- | src/gui/itemmodels/qstandarditemmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/itemmodels/qstandarditemmodel.cpp b/src/gui/itemmodels/qstandarditemmodel.cpp index 182208e2cf..8bc5abe461 100644 --- a/src/gui/itemmodels/qstandarditemmodel.cpp +++ b/src/gui/itemmodels/qstandarditemmodel.cpp @@ -2106,8 +2106,8 @@ QDataStream &operator<<(QDataStream &out, const QStandardItem &item) that interface (such as QListView, QTableView and QTreeView, and your own custom views). For performance and flexibility, you may want to subclass QAbstractItemModel to provide support for different kinds of data - repositories. For example, the QDirModel provides a model interface to the - underlying file system. + repositories. For example, the QFileSystemModel provides a model interface + to the underlying file system. When you want a list or tree, you typically create an empty QStandardItemModel and use appendRow() to add items to the model, and |