aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/plugin.h
diff options
context:
space:
mode:
authorGatis Paeglis <gatis.paeglis@digia.com>2014-07-21 12:09:37 +0200
committerGatis Paeglis <gatis.paeglis@digia.com>2014-08-28 17:17:56 +0300
commitee4dcc89b81a3a51ef2a5aa934084ddbe004dc44 (patch)
treea6fea6fc48e37b84d00e23c1aeb7d67edab57031 /src/virtualkeyboard/plugin.h
parent30a9a7f249dbe628d27922f72038109a91526489 (diff)
Add support for pre-compiling qml files
Adding the Qt Quick Compiler support requires utilizing Qt Resource System. This is achieved by generating the required resource files during execution of qmake and using qrc URL paths in the vkb plugin when in pre-compiled qml mode. The configure option to enable pre-compiled qml support is: CONFIG+=qtquickcompiler When "CONFIG+=qtquickcompiler" configure option is omitted - vkb plugin deploys all the required files on the file system. When "CONFIG+=qtquickcompiler" is set - vkb does not deploy any of the *.qml files. One limitation when using the pre-compiled qml case is that users can not add new layouts dynamically, this feature can be added in later patches. Change-Id: I7f27ea78f14370ee9082d1723f21b1d6230eef42 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi>
Diffstat (limited to 'src/virtualkeyboard/plugin.h')
-rw-r--r--src/virtualkeyboard/plugin.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/virtualkeyboard/plugin.h b/src/virtualkeyboard/plugin.h
new file mode 100644
index 00000000..1fae521a
--- /dev/null
+++ b/src/virtualkeyboard/plugin.h
@@ -0,0 +1,37 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Digia Plc
+** All rights reserved.
+** For any questions to Digia, please use contact form at http://qt.digia.com
+**
+** This file is part of the Qt Quick Enterprise Controls add-on.
+**
+** Licensees holding valid Qt Enterprise licenses may use this file in
+** accordance with the Qt Enterprise License Agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia.
+**
+** If you have questions regarding the use of this file, please use
+** contact form at http://qt.digia.com
+**
+****************************************************************************/
+
+#ifndef PLUGIN_H
+#define PLUGIN_H
+
+#include <QtQml>
+#include <qpa/qplatforminputcontextplugin_p.h>
+#include "platforminputcontext.h"
+#include <QStringList>
+
+class PlatformInputContextPlugin : public QPlatformInputContextPlugin
+{
+ Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPlatformInputContextFactoryInterface" FILE "qtvirtualkeyboard.json")
+
+public:
+ QStringList keys() const;
+ QPlatformInputContext *create(const QString&, const QStringList&);
+};
+
+#endif // PLUGIN_H