summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhooshan Supe <ext-bhooshan.supe@nokia.com>2012-04-06 19:47:12 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-04-11 21:25:03 (GMT)
commitc2dd028bc55ccd53e88da91f9a752743aef652e2 (patch)
treecac928964d3953978f636623afabdf9a2fec1876
parent2ee51c8c6f84fd55fdf144c1e0f42ef35870edec (diff)
downloadQt-c2dd028bc55ccd53e88da91f9a752743aef652e2.zip
Qt-c2dd028bc55ccd53e88da91f9a752743aef652e2.tar.gz
Qt-c2dd028bc55ccd53e88da91f9a752743aef652e2.tar.bz2
QWS: Add support for HomeLocation and TempLocation
There was no implementation for "QDesktopServices::HomeLocation" and "QDesktopServices::TempLocation" so adding the same. Change-Id: I6bc58cb83eb64367d8b9eedeea8c43bc4dcad4b6 Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Johannes Zellner <johannes.zellner@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
-rw-r--r--src/gui/util/qdesktopservices_qws.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/util/qdesktopservices_qws.cpp b/src/gui/util/qdesktopservices_qws.cpp
index b8b011d..a018528 100644
--- a/src/gui/util/qdesktopservices_qws.cpp
+++ b/src/gui/util/qdesktopservices_qws.cpp
@@ -61,6 +61,11 @@ static bool openDocument(const QUrl &file)
QString QDesktopServices::storageLocation(StandardLocation type)
{
+ if (type == QDesktopServices::HomeLocation)
+ return QDir::homePath();
+ if (type == QDesktopServices::TempLocation)
+ return QDir::tempPath();
+
if (type == DataLocation) {
QString qwsDataHome = QLatin1String(qgetenv("QWS_DATA_HOME"));
if (qwsDataHome.isEmpty())