From c2dd028bc55ccd53e88da91f9a752743aef652e2 Mon Sep 17 00:00:00 2001 From: Bhooshan Supe Date: Fri, 6 Apr 2012 12:47:12 -0700 Subject: 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 Reviewed-by: Johannes Zellner Reviewed-by: Lars Knoll Reviewed-by: Girish Ramakrishnan --- src/gui/util/qdesktopservices_qws.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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()) -- cgit v0.12