From 55bd24e9617cbb2a13adf9a7a86d3d49aeebcb73 Mon Sep 17 00:00:00 2001 From: Richard Moe Gustavsen Date: Thu, 22 May 2014 14:11:32 +0200 Subject: iOS: Implement support for native menus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I2c7278697499aa046ac7b1240b7bc713ad1fc709 Reviewed-by: Tor Arne Vestbø --- src/plugins/platforms/ios/qiostheme.mm | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/plugins/platforms/ios/qiostheme.mm') diff --git a/src/plugins/platforms/ios/qiostheme.mm b/src/plugins/platforms/ios/qiostheme.mm index e51e97bd5a..cbeb157cf2 100644 --- a/src/plugins/platforms/ios/qiostheme.mm +++ b/src/plugins/platforms/ios/qiostheme.mm @@ -53,6 +53,8 @@ #include #include +#include "qiosmenu.h" + QT_BEGIN_NAMESPACE const char *QIOSTheme::name = "ios"; @@ -66,6 +68,16 @@ QIOSTheme::~QIOSTheme() qDeleteAll(m_fonts); } +QPlatformMenuItem* QIOSTheme::createPlatformMenuItem() const +{ + return new QIOSMenuItem(); +} + +QPlatformMenu* QIOSTheme::createPlatformMenu() const +{ + return new QIOSMenu(); +} + QVariant QIOSTheme::themeHint(ThemeHint hint) const { switch (hint) { -- cgit v1.2.3