summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFawzi Mohamed <fawzi.mohamed@digia.com>2014-04-11 14:13:04 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-17 13:44:51 +0200
commitda27dc09c45a236744c482107a7d9f709069381c (patch)
tree3c3db4cd9b61477c945a9cc21a214e9962a5e99b
parent75487a011fb8b8de1e22c25425f024dfb97dc192 (diff)
downloadqtsensors-da27dc09c45a236744c482107a7d9f709069381c.tar.gz
qtsensors-da27dc09c45a236744c482107a7d9f709069381c.tar.bz2
qtsensors-da27dc09c45a236744c482107a7d9f709069381c.zip
accelbubble: disable rotation on iOS
Change-Id: Ia3f6bdd494b3d167121bd8ee80f81c031a81f45a Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
-rw-r--r--examples/sensors/accelbubble/Info.plist35
-rw-r--r--examples/sensors/accelbubble/accelbubble.pro7
2 files changed, 42 insertions, 0 deletions
diff --git a/examples/sensors/accelbubble/Info.plist b/examples/sensors/accelbubble/Info.plist
new file mode 100644
index 0000000..82e9bff
--- /dev/null
+++ b/examples/sensors/accelbubble/Info.plist
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDisplayName</key>
+ <string>accelbubble</string>
+ <key>CFBundleExecutable</key>
+ <string>accelbubble</string>
+ <key>CFBundleGetInfoString</key>
+ <string>Created by Qt/QMake</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.digia.accelbubble</string>
+ <key>CFBundleName</key>
+ <string>accelbubble</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleResourceSpecification</key>
+ <string>ResourceRules.plist</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>UIDeviceFamily</key>
+ <array>
+ <integer>1</integer>
+ <integer>2</integer>
+ </array>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ </array>
+</dict>
+</plist>
diff --git a/examples/sensors/accelbubble/accelbubble.pro b/examples/sensors/accelbubble/accelbubble.pro
index cdb6ab7..4204f15 100644
--- a/examples/sensors/accelbubble/accelbubble.pro
+++ b/examples/sensors/accelbubble/accelbubble.pro
@@ -15,4 +15,11 @@ OTHER_FILES = \
target.path = $$[QT_INSTALL_EXAMPLES]/sensors/accelbubble
INSTALLS += target
+ios {
+QMAKE_INFO_PLIST = Info.plist
+
+# manual plugin loading needed with older Qt
+# QTPLUGIN += qsvg qtsensors_ios qtsensors_generic
+}
+
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android