summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxintegration.cpp
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer.qnx@kdab.com>2012-04-24 11:17:18 +0100
committerQt by Nokia <qt-info@nokia.com>2012-05-19 01:45:04 +0200
commitb16a307dbce0bbc5f8de18d9e55dc27cef285135 (patch)
tree6d043240f9b8d122fc9ecc506b6d0e7e7e7a5bca /src/plugins/platforms/qnx/qqnxintegration.cpp
parentb09d601261244395450557187adeed6717f25155 (diff)
Adding QPlatformTheme support for Blackberry devices.
Starting off simple with fonts that follow the Playbook guidelines. Change-Id: If772f9a20c5e7566543be6bba47b49cdf3bf1524 Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxintegration.cpp')
-rw-r--r--src/plugins/platforms/qnx/qqnxintegration.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/plugins/platforms/qnx/qqnxintegration.cpp b/src/plugins/platforms/qnx/qqnxintegration.cpp
index dd1a6f8b7e..2f4e8cd19a 100644
--- a/src/plugins/platforms/qnx/qqnxintegration.cpp
+++ b/src/plugins/platforms/qnx/qqnxintegration.cpp
@@ -54,6 +54,7 @@
#if defined(Q_OS_BLACKBERRY)
#include "qqnxbpseventfilter.h"
#include "qqnxnavigatorbps.h"
+#include "qqnxtheme.h"
#include "qqnxvirtualkeyboardbps.h"
#elif defined(QQNX_PPS)
#include "qqnxnavigatorpps.h"
@@ -383,6 +384,23 @@ QPlatformServices * QQnxIntegration::services() const
return m_services;
}
+#if defined(Q_OS_BLACKBERRY)
+QStringList QQnxIntegration::themeNames() const
+{
+ return QStringList(QQnxTheme::name());
+}
+
+QPlatformTheme *QQnxIntegration::createPlatformTheme(const QString &name) const
+{
+#if defined(QQNXINTEGRATION_DEBUG)
+ qDebug() << Q_FUNC_INFO << "name =" << name;
+#endif
+ if (name == QQnxTheme::name())
+ return new QQnxTheme(m_fontDatabase);
+ return QPlatformIntegration::createPlatformTheme(name);
+}
+#endif
+
QWindow *QQnxIntegration::window(screen_window_t qnxWindow)
{
#if defined(QQNXINTEGRATION_DEBUG)