diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-03 16:16:52 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-03 16:16:52 (GMT) |
commit | 00c742407859aedd34f7d2811a8408ecd15d1e14 (patch) | |
tree | fa47f221f3648ea9eac604ec6ecafd81fba0de70 /src | |
parent | 35988b6d5d14388004a4b51df1355d3d3a97d145 (diff) | |
parent | 14054a47230d41063a10ce8fbf7dc65c916163d7 (diff) | |
download | Qt-00c742407859aedd34f7d2811a8408ecd15d1e14.zip Qt-00c742407859aedd34f7d2811a8408ecd15d1e14.tar.gz Qt-00c742407859aedd34f7d2811a8408ecd15d1e14.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
QDir fix issues with (shared) cached lists
qdoc3: Added support for the \qmlbasictype command.
Move the Hungarian translation to the translations folder
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/io/qdir.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/corelib/io/qdir.cpp b/src/corelib/io/qdir.cpp index 250e5e5..f5d803e 100644 --- a/src/corelib/io/qdir.cpp +++ b/src/corelib/io/qdir.cpp @@ -960,7 +960,7 @@ void QDir::setNameFilters(const QStringList &nameFilters) { Q_D(QDir); - d->detach(); + d->reset(); d->data->nameFilters = nameFilters; } @@ -1146,7 +1146,7 @@ void QDir::setFilter(Filters filters) { Q_D(QDir); - d->detach(); + d->reset(); d->data->filters = filters; } @@ -1204,7 +1204,7 @@ void QDir::setSorting(SortFlags sort) { Q_D(QDir); - d->detach(); + d->reset(); d->data->sort = sort; } @@ -2155,7 +2155,7 @@ void QDir::refresh() const { Q_D(const QDir); - d->data->clear(); + const_cast<QDirPrivate *>(d)->reset(); } /*! @@ -2244,6 +2244,8 @@ bool QDir::matchAllDirs() const void QDir::setMatchAllDirs(bool on) { Q_D(QDir); + + d->reset(); d->matchAllDirs = on; } |