summaryrefslogtreecommitdiffstats
path: root/src/gui/util/qdesktopservices.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2012-04-20 14:09:55 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-23 15:39:24 +0200
commitecba58500e752899cbd4cedcd78cf1e7b35b043e (patch)
treed5150bc0dfd4ccc664eba4e7deedcbcf9c20b50c /src/gui/util/qdesktopservices.cpp
parent55d1f56c28e230f4d5adb5bcd9eab99e131aec93 (diff)
Fix compilation of QDesktopServices without deprecated
Change-Id: I9e225d32b3f7db403cf3eea6a277580b4b7410a7 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/util/qdesktopservices.cpp')
-rw-r--r--src/gui/util/qdesktopservices.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/util/qdesktopservices.cpp b/src/gui/util/qdesktopservices.cpp
index 26aecadcf4..67b695424b 100644
--- a/src/gui/util/qdesktopservices.cpp
+++ b/src/gui/util/qdesktopservices.cpp
@@ -285,9 +285,9 @@ void QDesktopServices::unsetUrlHandler(const QString &scheme)
*/
-QString QDesktopServices::storageLocationImpl(StandardLocation type)
+QString QDesktopServices::storageLocationImpl(QStandardPaths::StandardLocation type)
{
- if (type == DataLocation) {
+ if (type == QStandardPaths::DataLocation) {
// Preserve Qt 4 compatibility:
// * QCoreApplication::applicationName() must default to empty
// * Unix data location is under the "data/" subdirectory
@@ -307,7 +307,7 @@ QString QDesktopServices::storageLocationImpl(StandardLocation type)
+ compatAppName;
#endif
}
- return QStandardPaths::writableLocation(static_cast<QStandardPaths::StandardLocation>(type));
+ return QStandardPaths::writableLocation(type);
}
QT_END_NAMESPACE