QDir::NoDotAndDotDot is now QDir::NoDot|QDir::NoDotDot.
Change-Id: I8ef7782258c2ec02ad2ec2a5d5cab90f53c62aa3 Reviewed-by: David Faure <david.faure@kdab.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>bb10
parent
fe7265a0bb
commit
c22be73168
|
|
@ -190,6 +190,9 @@ information about a particular change.
|
|||
- QTextCodecPlugin has been removed since it is no longer used. All text codecs
|
||||
are now built into QtCore.
|
||||
|
||||
- QDir::NoDotAndDotDot is QDir::NoDot|QDir::NoDotDot therefore there is no need
|
||||
to use or check both.
|
||||
|
||||
****************************************************************************
|
||||
* General *
|
||||
****************************************************************************
|
||||
|
|
|
|||
|
|
@ -2217,7 +2217,6 @@ QDebug operator<<(QDebug debug, QDir::Filters filters)
|
|||
if (filters & QDir::Files) flags << QLatin1String("Files");
|
||||
if (filters & QDir::Drives) flags << QLatin1String("Drives");
|
||||
if (filters & QDir::NoSymLinks) flags << QLatin1String("NoSymLinks");
|
||||
if (filters & QDir::NoDotAndDotDot) flags << QLatin1String("NoDotAndDotDot"); // ### Qt5: remove (because NoDotAndDotDot=NoDot|NoDotDot)
|
||||
if (filters & QDir::NoDot) flags << QLatin1String("NoDot");
|
||||
if (filters & QDir::NoDotDot) flags << QLatin1String("NoDotDot");
|
||||
if ((filters & QDir::AllEntries) == QDir::AllEntries) flags << QLatin1String("AllEntries");
|
||||
|
|
|
|||
|
|
@ -77,9 +77,9 @@ public:
|
|||
|
||||
AllDirs = 0x400,
|
||||
CaseSensitive = 0x800,
|
||||
NoDotAndDotDot = 0x1000, // ### Qt5 NoDotAndDotDot = NoDot|NoDotDot
|
||||
NoDot = 0x2000,
|
||||
NoDotDot = 0x4000,
|
||||
NoDotAndDotDot = NoDot | NoDotDot,
|
||||
|
||||
NoFilter = -1
|
||||
};
|
||||
|
|
|
|||
|
|
@ -330,8 +330,6 @@ bool QDirIteratorPrivate::matchesFilters(const QString &fileName, const QFileInf
|
|||
return false;
|
||||
if ((filters & QDir::NoDotDot) && dotOrDotDot && fileNameSize == 2)
|
||||
return false;
|
||||
if ((filters & QDir::NoDotAndDotDot) && dotOrDotDot) // ### Qt5 remove (NoDotAndDotDot == NoDot|NoDotDot)
|
||||
return false;
|
||||
|
||||
// name filter
|
||||
#ifndef QT_NO_REGEXP
|
||||
|
|
|
|||
|
|
@ -1964,8 +1964,8 @@ bool QFileSystemModelPrivate::filtersAcceptsNode(const QFileSystemNode *node) co
|
|||
const bool hideHidden = !(filters & QDir::Hidden);
|
||||
const bool hideSystem = !(filters & QDir::System);
|
||||
const bool hideSymlinks = (filters & QDir::NoSymLinks);
|
||||
const bool hideDot = (filters & QDir::NoDot) || (filters & QDir::NoDotAndDotDot); // ### Qt5: simplify (because NoDotAndDotDot=NoDot|NoDotDot)
|
||||
const bool hideDotDot = (filters & QDir::NoDotDot) || (filters & QDir::NoDotAndDotDot); // ### Qt5: simplify (because NoDotAndDotDot=NoDot|NoDotDot)
|
||||
const bool hideDot = (filters & QDir::NoDot);
|
||||
const bool hideDotDot = (filters & QDir::NoDotDot);
|
||||
|
||||
// Note that we match the behavior of entryList and not QFileInfo on this and this
|
||||
// incompatibility won't be fixed until Qt 5 at least
|
||||
|
|
|
|||
Loading…
Reference in New Issue