diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2010-01-08 14:33:06 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2010-01-08 15:16:50 (GMT) |
commit | 319b0262418d74cc416a7dd1f620b54ba45bad22 (patch) | |
tree | e4c8b7af34eb0ee8b2970ec54bfe5aea8f861bbd /examples/itemviews/dirview | |
parent | 2e62227f950aac8205f2b67e4d7d046836b2c799 (diff) | |
download | Qt-319b0262418d74cc416a7dd1f620b54ba45bad22.zip Qt-319b0262418d74cc416a7dd1f620b54ba45bad22.tar.gz Qt-319b0262418d74cc416a7dd1f620b54ba45bad22.tar.bz2 |
Obsolete QDirModel and remove it from the doc.
QFileSystemModel provides the same features as QDirModel but in a
efficient way so no need to keep QDirModel around.
This commit mark as obsolete QDirModel. Examples has been ported to
use QFileSystemModel instead. QCompleter also gain the support of
QFileSystemModel to complete nicely a line edit.
This commit also add a new signal in QFileSystemModel when the directory
is loaded, i.e. the thread has finished to read the current dir.
Task-number:QTBUG-3884
Reviewed-by:ogoffart
Reviewed-by:gabi
Reviewed-by:mbm
Diffstat (limited to 'examples/itemviews/dirview')
-rw-r--r-- | examples/itemviews/dirview/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/itemviews/dirview/main.cpp b/examples/itemviews/dirview/main.cpp index 768046a..e7e343e 100644 --- a/examples/itemviews/dirview/main.cpp +++ b/examples/itemviews/dirview/main.cpp @@ -45,7 +45,8 @@ int main(int argc, char *argv[]) { QApplication app(argc, argv); - QDirModel model; + QFileSystemModel model; + model.setRootPath(""); QTreeView tree; tree.setModel(&model); |