diff options
author | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-02-11 15:54:35 +0300 |
---|---|---|
committer | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-02-11 13:31:40 +0000 |
commit | 7c7be5195df2b26db58c4e730e304787d7980228 (patch) | |
tree | 8046289b35271d617215466b69327f33589d698a /src/controls | |
parent | 13f7c9feb35850f09a29b45fa8c0b1ddad97421a (diff) |
QQuickStyleSelector: remove QFile header
... and replace QFile::exists() with QFileInfo::exists().
Only exists() is used from QFile. But the same function there is
in QFileInfo, that already is included.
Change-Id: I4b812951f7c85232b62bc7188620f98578145294
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/controls')
-rw-r--r-- | src/controls/qquickstyleselector.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/controls/qquickstyleselector.cpp b/src/controls/qquickstyleselector.cpp index 21354a16..0f0fb3b0 100644 --- a/src/controls/qquickstyleselector.cpp +++ b/src/controls/qquickstyleselector.cpp @@ -35,7 +35,6 @@ #include "qquickstyleselector_p.h" #include "qquickstyleselector_p_p.h" -#include <QtCore/QFile> #include <QtCore/QDir> #include <QtCore/QMutex> #include <QtCore/QMutexLocker> @@ -120,7 +119,7 @@ static QString selectionHelper(const QString &path, const QString &fileName, con // If we reach here there were no successful files found at a lower level in this branch, so we // should check this level as a potential result. - if (!QFile::exists(path + fileName)) + if (!QFileInfo::exists(path + fileName)) return QString(); return path + fileName; } |