diff options
author | Ritt Konstantin <ritt.ks@gmail.com> | 2010-03-09 13:57:28 (GMT) |
---|---|---|
committer | João Abecasis <joao@trolltech.com> | 2010-03-09 15:46:30 (GMT) |
commit | 204f389f9296cc742153b38dea67128d38514b66 (patch) | |
tree | 7fcfd54baaa1d7d7ba08572eec30d4c12faaf8a7 /src/gui/dialogs/qfileinfogatherer_p.h | |
parent | 1a682690ee31409223249cb0dd7c7ef588f6bdff (diff) | |
download | Qt-204f389f9296cc742153b38dea67128d38514b66.zip Qt-204f389f9296cc742153b38dea67128d38514b66.tar.gz Qt-204f389f9296cc742153b38dea67128d38514b66.tar.bz2 |
remove unneeded "permissions normalization" code from QFileInfoGatherer
Since the file engine now properly calculates user permissions, there's
no need to check the owner and group IDs here.
Merge-request: 428
Reviewed-by: João Abecasis <joao@trolltech.com>
Diffstat (limited to 'src/gui/dialogs/qfileinfogatherer_p.h')
-rw-r--r-- | src/gui/dialogs/qfileinfogatherer_p.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gui/dialogs/qfileinfogatherer_p.h b/src/gui/dialogs/qfileinfogatherer_p.h index b8b58a2..eff6b3c 100644 --- a/src/gui/dialogs/qfileinfogatherer_p.h +++ b/src/gui/dialogs/qfileinfogatherer_p.h @@ -88,11 +88,7 @@ public: return fe.caseSensitive(); } QFile::Permissions permissions() const { - return mPermissions; - } - - void setPermissions (QFile::Permissions permissions) { - mPermissions = permissions; + return mFileInfo.permissions(); } Type type() const { @@ -140,7 +136,6 @@ public: private : QFileInfo mFileInfo; - QFile::Permissions mPermissions; }; class QFileIconProvider; @@ -181,7 +176,6 @@ protected: private: void fetch(const QFileInfo &info, QTime &base, bool &firstTime, QList<QPair<QString, QFileInfo> > &updatedFiles, const QString &path); QString translateDriveName(const QFileInfo &drive) const; - QFile::Permissions translatePermissions(const QFileInfo &fileInfo) const; QMutex mutex; QWaitCondition condition; |