equal
deleted
inserted
replaced
81 #endif |
81 #endif |
82 |
82 |
83 Modified = 0x080, |
83 Modified = 0x080, |
84 Hidden = 0x100, |
84 Hidden = 0x100, |
85 System = 0x200, |
85 System = 0x200, |
86 |
86 |
87 AccessMask = 0x3F0, |
87 AccessMask = 0x3F0, |
88 |
88 |
89 AllDirs = 0x400, |
89 AllDirs = 0x400, |
90 CaseSensitive = 0x800, |
90 CaseSensitive = 0x800, |
91 NoDotAndDotDot = 0x1000, |
91 NoDotAndDotDot = 0x1000, // ### Qt5 NoDotAndDotDot = NoDot|NoDotDot |
|
92 NoDot = 0x2000, |
|
93 NoDotDot = 0x4000, |
92 |
94 |
93 NoFilter = -1 |
95 NoFilter = -1 |
94 #ifdef QT3_SUPPORT |
96 #ifdef QT3_SUPPORT |
95 ,DefaultFilter = NoFilter |
97 ,DefaultFilter = NoFilter |
96 #endif |
98 #endif |
213 |
215 |
214 #ifndef QT_NO_REGEXP |
216 #ifndef QT_NO_REGEXP |
215 static bool match(const QStringList &filters, const QString &fileName); |
217 static bool match(const QStringList &filters, const QString &fileName); |
216 static bool match(const QString &filter, const QString &fileName); |
218 static bool match(const QString &filter, const QString &fileName); |
217 #endif |
219 #endif |
|
220 |
218 static QString cleanPath(const QString &path); |
221 static QString cleanPath(const QString &path); |
219 void refresh() const; |
222 void refresh() const; |
220 |
223 |
221 #ifdef QT3_SUPPORT |
224 #ifdef QT3_SUPPORT |
222 typedef SortFlags SortSpec; |
225 typedef SortFlags SortSpec; |
244 inline QT3_SUPPORT void convertToAbs() { makeAbsolute(); } |
247 inline QT3_SUPPORT void convertToAbs() { makeAbsolute(); } |
245 inline QT3_SUPPORT static QString currentDirPath() { return currentPath(); } |
248 inline QT3_SUPPORT static QString currentDirPath() { return currentPath(); } |
246 inline QT3_SUPPORT static QString homeDirPath() { return homePath(); } |
249 inline QT3_SUPPORT static QString homeDirPath() { return homePath(); } |
247 inline QT3_SUPPORT static QString rootDirPath() { return rootPath(); } |
250 inline QT3_SUPPORT static QString rootDirPath() { return rootPath(); } |
248 inline QT3_SUPPORT static QString cleanDirPath(const QString &name) { return cleanPath(name); } |
251 inline QT3_SUPPORT static QString cleanDirPath(const QString &name) { return cleanPath(name); } |
249 #endif |
252 #endif // QT3_SUPPORT |
250 }; |
253 }; |
251 |
254 |
252 Q_DECLARE_OPERATORS_FOR_FLAGS(QDir::Filters) |
255 Q_DECLARE_OPERATORS_FOR_FLAGS(QDir::Filters) |
253 Q_DECLARE_OPERATORS_FOR_FLAGS(QDir::SortFlags) |
256 Q_DECLARE_OPERATORS_FOR_FLAGS(QDir::SortFlags) |
254 |
257 |