summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qiostheme.mm
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>2014-05-22 14:11:32 +0200
committerRichard Moe Gustavsen <richard.gustavsen@digia.com>2014-09-23 17:51:28 +0200
commit55bd24e9617cbb2a13adf9a7a86d3d49aeebcb73 (patch)
treece1b366d3aee54add6e7bb23ac375aacd1927e12 /src/plugins/platforms/ios/qiostheme.mm
parent79ad2b3799188ef273f24631403e9fc42b6963ed (diff)
iOS: Implement support for native menus
Change-Id: I2c7278697499aa046ac7b1240b7bc713ad1fc709 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'src/plugins/platforms/ios/qiostheme.mm')
-rw-r--r--src/plugins/platforms/ios/qiostheme.mm12
1 files changed, 12 insertions, 0 deletions
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 <UIKit/UIFont.h>
#include <UIKit/UIInterface.h>
+#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) {