diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2013-10-03 16:38:18 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-03 18:17:53 +0200 |
commit | f6dc1316289542280d6cac4898458f28157999f7 (patch) | |
tree | 30aeb05f1e03cbbe9602d013e24171736b43e0d4 /src/plugins/platforms/ios/qiosintegration.mm | |
parent | 2844be2434c720e17ec1aaaf1ea9b555e8e04fcb (diff) |
iOS: Implement QPlatformServices to handle opening URLs
Change-Id: Ie644df16b919d6def1435dc5f3665ba3f62fb055
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'src/plugins/platforms/ios/qiosintegration.mm')
-rw-r--r-- | src/plugins/platforms/ios/qiosintegration.mm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/qiosintegration.mm b/src/plugins/platforms/ios/qiosintegration.mm index acf33d5e1c..b9bb82a326 100644 --- a/src/plugins/platforms/ios/qiosintegration.mm +++ b/src/plugins/platforms/ios/qiosintegration.mm @@ -48,6 +48,7 @@ #include "qioscontext.h" #include "qiosinputcontext.h" #include "qiostheme.h" +#include "qiosservices.h" #include <QtPlatformSupport/private/qcoretextfontdatabase_p.h> #include <QDir> @@ -60,6 +61,7 @@ QIOSIntegration::QIOSIntegration() : m_fontDatabase(new QCoreTextFontDatabase) , m_inputContext(new QIOSInputContext) , m_screen(new QIOSScreen(QIOSScreen::MainScreen)) + , m_platformServices(new QIOSServices) { if (![UIApplication sharedApplication]) { qWarning() @@ -91,6 +93,9 @@ QIOSIntegration::~QIOSIntegration() delete m_screen; m_screen = 0; + + delete m_platformServices; + m_platformServices = 0; } bool QIOSIntegration::hasCapability(Capability cap) const @@ -143,6 +148,11 @@ QPlatformInputContext *QIOSIntegration::inputContext() const return m_inputContext; } +QPlatformServices *QIOSIntegration::services() const +{ + return m_platformServices; +} + QVariant QIOSIntegration::styleHint(StyleHint hint) const { switch (hint) { |