summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>2012-06-06 15:01:59 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-08 04:47:59 +0200
commit21e0d164110a4a1ff824e4014957353765542c2d (patch)
tree9972ad9d441e58cf959bfbd1d44bce657109594a /src/gui/kernel
parent168c583a783196181b7aa601d644459d7e0de92d (diff)
Remove widgets lib dependency on platformsupport.
Instead of the dependency add the one needed function as virtual to the QPlatformServices in QtGui. Change-Id: Ia4455f5ac88ec4d0480bd81635cebba62bbd8ac5 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qplatformservices.h2
-rw-r--r--src/gui/kernel/qplatformservices_qpa.cpp10
2 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformservices.h b/src/gui/kernel/qplatformservices.h
index ab8211f00f..dd4c44426b 100644
--- a/src/gui/kernel/qplatformservices.h
+++ b/src/gui/kernel/qplatformservices.h
@@ -66,6 +66,8 @@ public:
virtual bool openUrl(const QUrl &url);
virtual bool openDocument(const QUrl &url);
+
+ virtual QByteArray desktopEnvironment() const;
};
QT_END_NAMESPACE
diff --git a/src/gui/kernel/qplatformservices_qpa.cpp b/src/gui/kernel/qplatformservices_qpa.cpp
index dac9e64e40..9a1ea404ef 100644
--- a/src/gui/kernel/qplatformservices_qpa.cpp
+++ b/src/gui/kernel/qplatformservices_qpa.cpp
@@ -71,4 +71,14 @@ bool QPlatformServices::openDocument(const QUrl &url)
return false;
}
+/*!
+ * \brief QPlatformServices::desktopEnvironment returns the active desktop environment.
+ * \return On Unix this function returns KDE, GNOME or UNKNOWN.
+ */
+QByteArray QPlatformServices::desktopEnvironment() const
+{
+ return QByteArray("UNKNOWN");
+}
+
+
QT_END_NAMESPACE