summaryrefslogtreecommitdiffstats
path: root/src/android/accessibility/jar/jar.pri
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2013-07-27 00:11:20 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-22 18:45:24 +0200
commit3abecf2ee9fc724af571f8c7da4302f7bee9eadb (patch)
tree2d727cd1d04e345a231ab4dcd99af1b9d2003b5b /src/android/accessibility/jar/jar.pri
parent59b6a67b94fab5aa36a01beb0d8665575b678f64 (diff)
Accessibility for Android
This enables both modes for TalkBack, explore-by-touch and the normal swiping mode. It is partially inspired by the BarGraphView example of the Google/Android Eyes-Free project. Note that for any accessibility to work you'll need a device with api level 16 at least. Using reflection we should be able to dynamically pick up the classes if we have the high enough api level. Change-Id: I11b93bead451483782a1711434d45c8f9a35996f Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/android/accessibility/jar/jar.pri')
-rw-r--r--src/android/accessibility/jar/jar.pri14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/android/accessibility/jar/jar.pri b/src/android/accessibility/jar/jar.pri
new file mode 100644
index 0000000000..23b3ff7087
--- /dev/null
+++ b/src/android/accessibility/jar/jar.pri
@@ -0,0 +1,14 @@
+CONFIG += java
+DESTDIR = $$[QT_INSTALL_PREFIX/get]/jar
+API_VERSION = android-16
+
+PATHPREFIX = $$PWD/src/org/qtproject/qt5/android/accessibility
+
+JAVACLASSPATH += $$PWD/src/
+JAVASOURCES += \
+ $$PATHPREFIX/QtAccessibilityDelegate.java \
+ $$PATHPREFIX/QtNativeAccessibility.java
+
+# install
+target.path = $$[QT_INSTALL_PREFIX]/jar
+INSTALLS += target \ No newline at end of file