From 19316bc38c050cba511772d3a4edb02e9fa7ac33 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Wed, 14 Dec 2016 17:07:48 +0100 Subject: Move QML type registration to the QML plugins Change-Id: I4decb535e35b888a091cbb1999ac6874da6cb470 Reviewed-by: J-P Nurmi --- src/imports/android/qtqmlandroidplugin.cpp | 14 ++- src/imports/app/qtqmlandroidappplugin.cpp | 22 +++- src/imports/content/qtqmlandroidcontentplugin.cpp | 14 ++- .../drawable/qtqmlandroiddrawableplugin.cpp | 16 ++- .../graphics/qtqmlandroidgraphicsplugin.cpp | 14 ++- .../widget/qtqmlandroidsupportv4widgetplugin.cpp | 16 ++- .../v7/app/qtqmlandroidsupportv7appplugin.cpp | 14 ++- .../widget/qtqmlandroidsupportv7widgetplugin.cpp | 18 ++- .../view/animation/qtqmlandroidanimationplugin.cpp | 45 +++++++- src/imports/view/qtqmlandroidviewplugin.cpp | 26 ++++- src/imports/widget/qtqmlandroidwidgetplugin.cpp | 85 +++++++++++++- src/qmlandroid/app/app.pri | 6 +- src/qmlandroid/app/qtqmlandroidappmodule.cpp | 62 ---------- src/qmlandroid/app/qtqmlandroidappmodule_p.h | 62 ---------- src/qmlandroid/content/content.pri | 6 +- .../content/qtqmlandroidcontentmodule.cpp | 54 --------- .../content/qtqmlandroidcontentmodule_p.h | 62 ---------- src/qmlandroid/graphics/drawable/drawable.pri | 6 +- .../drawable/qtqmlandroiddrawablemodule.cpp | 56 --------- .../drawable/qtqmlandroiddrawablemodule_p.h | 62 ---------- src/qmlandroid/graphics/graphics.pri | 6 +- .../graphics/qtqmlandroidgraphicsmodule.cpp | 54 --------- .../graphics/qtqmlandroidgraphicsmodule_p.h | 62 ---------- src/qmlandroid/qmlandroid.pri | 6 +- src/qmlandroid/qtqmlandroidmodule.cpp | 54 --------- src/qmlandroid/qtqmlandroidmodule_p.h | 62 ---------- .../support/qtqmlandroidsupportmodule.cpp | 74 ------------ .../support/qtqmlandroidsupportmodule_p.h | 64 ----------- src/qmlandroid/support/support.pri | 8 -- src/qmlandroid/view/animation/animation.pri | 6 +- .../view/animation/qtqmlandroidanimationmodule.cpp | 85 -------------- .../view/animation/qtqmlandroidanimationmodule_p.h | 62 ---------- src/qmlandroid/view/qtqmlandroidviewmodule.cpp | 66 ----------- src/qmlandroid/view/qtqmlandroidviewmodule_p.h | 62 ---------- src/qmlandroid/view/view.pri | 6 +- src/qmlandroid/widget/qtqmlandroidwidgetmodule.cpp | 125 --------------------- src/qmlandroid/widget/qtqmlandroidwidgetmodule_p.h | 62 ---------- src/qmlandroid/widget/widget.pri | 6 +- 38 files changed, 245 insertions(+), 1285 deletions(-) delete mode 100644 src/qmlandroid/app/qtqmlandroidappmodule.cpp delete mode 100644 src/qmlandroid/app/qtqmlandroidappmodule_p.h delete mode 100644 src/qmlandroid/content/qtqmlandroidcontentmodule.cpp delete mode 100644 src/qmlandroid/content/qtqmlandroidcontentmodule_p.h delete mode 100644 src/qmlandroid/graphics/drawable/qtqmlandroiddrawablemodule.cpp delete mode 100644 src/qmlandroid/graphics/drawable/qtqmlandroiddrawablemodule_p.h delete mode 100644 src/qmlandroid/graphics/qtqmlandroidgraphicsmodule.cpp delete mode 100644 src/qmlandroid/graphics/qtqmlandroidgraphicsmodule_p.h delete mode 100644 src/qmlandroid/qtqmlandroidmodule.cpp delete mode 100644 src/qmlandroid/qtqmlandroidmodule_p.h delete mode 100644 src/qmlandroid/support/qtqmlandroidsupportmodule.cpp delete mode 100644 src/qmlandroid/support/qtqmlandroidsupportmodule_p.h delete mode 100644 src/qmlandroid/view/animation/qtqmlandroidanimationmodule.cpp delete mode 100644 src/qmlandroid/view/animation/qtqmlandroidanimationmodule_p.h delete mode 100644 src/qmlandroid/view/qtqmlandroidviewmodule.cpp delete mode 100644 src/qmlandroid/view/qtqmlandroidviewmodule_p.h delete mode 100644 src/qmlandroid/widget/qtqmlandroidwidgetmodule.cpp delete mode 100644 src/qmlandroid/widget/qtqmlandroidwidgetmodule_p.h diff --git a/src/imports/android/qtqmlandroidplugin.cpp b/src/imports/android/qtqmlandroidplugin.cpp index 31de808..c5fdfc6 100644 --- a/src/imports/android/qtqmlandroidplugin.cpp +++ b/src/imports/android/qtqmlandroidplugin.cpp @@ -35,7 +35,9 @@ ****************************************************************************/ #include -#include +#include + +#include QT_BEGIN_NAMESPACE @@ -45,12 +47,14 @@ class QtQmlAndroidPlugin: public QQmlExtensionPlugin Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0") public: - void registerTypes(const char *uri) - { - QtQmlAndroid::registerAndroidModule(uri); - } + void registerTypes(const char *uri) override; }; +void QtQmlAndroidPlugin::registerTypes(const char *uri) +{ + qmlRegisterSingletonType(uri, 0, 21, "R", QQmlAndroidR::provider); +} + QT_END_NAMESPACE #include "qtqmlandroidplugin.moc" diff --git a/src/imports/app/qtqmlandroidappplugin.cpp b/src/imports/app/qtqmlandroidappplugin.cpp index 9d663c7..1263964 100644 --- a/src/imports/app/qtqmlandroidappplugin.cpp +++ b/src/imports/app/qtqmlandroidappplugin.cpp @@ -35,7 +35,13 @@ ****************************************************************************/ #include -#include +#include + +#include +#include +#include +#include +#include QT_BEGIN_NAMESPACE @@ -45,12 +51,18 @@ class QtQmlAndroidAppPlugin: public QQmlExtensionPlugin Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0") public: - void registerTypes(const char *uri) - { - QtQmlAndroid::registerAppModule(uri); - } + void registerTypes(const char *uri) override; }; +void QtQmlAndroidAppPlugin::registerTypes(const char *uri) +{ + qmlRegisterType(uri, 0, 21, "ActionBar"); + qmlRegisterType(uri, 0, 21, "Activity"); + qmlRegisterType(uri, 0, 21, "AlertDialog"); + qmlRegisterType(uri, 0, 21, "Dialog"); + qmlRegisterType(uri, 0, 21, "Service"); +} + QT_END_NAMESPACE #include "qtqmlandroidappplugin.moc" diff --git a/src/imports/content/qtqmlandroidcontentplugin.cpp b/src/imports/content/qtqmlandroidcontentplugin.cpp index 12e9510..857c23b 100644 --- a/src/imports/content/qtqmlandroidcontentplugin.cpp +++ b/src/imports/content/qtqmlandroidcontentplugin.cpp @@ -35,7 +35,9 @@ ****************************************************************************/ #include -#include +#include + +#include QT_BEGIN_NAMESPACE @@ -45,12 +47,14 @@ class QtQmlAndroidContentPlugin: public QQmlExtensionPlugin Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0") public: - void registerTypes(const char *uri) - { - QtQmlAndroid::registerContentModule(uri); - } + void registerTypes(const char *uri) override; }; +void QtQmlAndroidContentPlugin::registerTypes(const char *uri) +{ + qmlRegisterUncreatableType(uri, 0, 21, "Context", QStringLiteral("Cannot create Context")); +} + QT_END_NAMESPACE #include "qtqmlandroidcontentplugin.moc" diff --git a/src/imports/graphics/drawable/qtqmlandroiddrawableplugin.cpp b/src/imports/graphics/drawable/qtqmlandroiddrawableplugin.cpp index d53ec28..b83dfad 100644 --- a/src/imports/graphics/drawable/qtqmlandroiddrawableplugin.cpp +++ b/src/imports/graphics/drawable/qtqmlandroiddrawableplugin.cpp @@ -35,7 +35,10 @@ ****************************************************************************/ #include -#include +#include + +#include +#include QT_BEGIN_NAMESPACE @@ -45,12 +48,15 @@ class QtQmlAndroidDrawablePlugin: public QQmlExtensionPlugin Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0") public: - void registerTypes(const char *uri) - { - QtQmlAndroid::registerDrawableModule(uri); - } + void registerTypes(const char *uri) override; }; +void QtQmlAndroidDrawablePlugin::registerTypes(const char *uri) +{ + qmlRegisterType(uri, 0, 21, "ColorDrawable"); + qmlRegisterType(uri, 0, 21, "Drawable"); +} + QT_END_NAMESPACE #include "qtqmlandroiddrawableplugin.moc" diff --git a/src/imports/graphics/qtqmlandroidgraphicsplugin.cpp b/src/imports/graphics/qtqmlandroidgraphicsplugin.cpp index 5670b5f..1f77c6b 100644 --- a/src/imports/graphics/qtqmlandroidgraphicsplugin.cpp +++ b/src/imports/graphics/qtqmlandroidgraphicsplugin.cpp @@ -35,7 +35,9 @@ ****************************************************************************/ #include -#include +#include + +#include QT_BEGIN_NAMESPACE @@ -45,12 +47,14 @@ class QtQmlAndroidGraphicsPlugin: public QQmlExtensionPlugin Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0") public: - void registerTypes(const char *uri) - { - QtQmlAndroid::registerGraphicsModule(uri); - } + void registerTypes(const char *uri) override; }; +void QtQmlAndroidGraphicsPlugin::registerTypes(const char *uri) +{ + qmlRegisterSingletonType(uri, 0, 21, "Color", QQmlAndroidColor::provider); +} + QT_END_NAMESPACE #include "qtqmlandroidgraphicsplugin.moc" diff --git a/src/imports/support/v4/widget/qtqmlandroidsupportv4widgetplugin.cpp b/src/imports/support/v4/widget/qtqmlandroidsupportv4widgetplugin.cpp index 0f60360..2ade385 100644 --- a/src/imports/support/v4/widget/qtqmlandroidsupportv4widgetplugin.cpp +++ b/src/imports/support/v4/widget/qtqmlandroidsupportv4widgetplugin.cpp @@ -35,7 +35,10 @@ ****************************************************************************/ #include -#include +#include + +#include +#include QT_BEGIN_NAMESPACE @@ -45,12 +48,15 @@ class QtQmlAndroidSupportV4WidgetPlugin: public QQmlExtensionPlugin Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0") public: - void registerTypes(const char *uri) - { - QtQmlAndroid::registerSupportV4WidgetModule(uri); - } + void registerTypes(const char *uri) override; }; +void QtQmlAndroidSupportV4WidgetPlugin::registerTypes(const char *uri) +{ + qmlRegisterType(uri, 0, 21, "DrawerLayout"); + qmlRegisterType(uri, 0, 21, "SwipeRefreshLayout"); +} + QT_END_NAMESPACE #include "qtqmlandroidsupportv4widgetplugin.moc" diff --git a/src/imports/support/v7/app/qtqmlandroidsupportv7appplugin.cpp b/src/imports/support/v7/app/qtqmlandroidsupportv7appplugin.cpp index 20c6f57..ee0e1cf 100644 --- a/src/imports/support/v7/app/qtqmlandroidsupportv7appplugin.cpp +++ b/src/imports/support/v7/app/qtqmlandroidsupportv7appplugin.cpp @@ -35,7 +35,9 @@ ****************************************************************************/ #include -#include +#include + +#include QT_BEGIN_NAMESPACE @@ -45,12 +47,14 @@ class QtQmlAndroidSupportV7AppPlugin: public QQmlExtensionPlugin Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0") public: - void registerTypes(const char *uri) - { - QtQmlAndroid::registerSupportV7AppModule(uri); - } + void registerTypes(const char *uri) override; }; +void QtQmlAndroidSupportV7AppPlugin::registerTypes(const char *uri) +{ + qmlRegisterType(uri, 0, 21, "ActionBarDrawerToggle"); +} + QT_END_NAMESPACE #include "qtqmlandroidsupportv7appplugin.moc" diff --git a/src/imports/support/v7/widget/qtqmlandroidsupportv7widgetplugin.cpp b/src/imports/support/v7/widget/qtqmlandroidsupportv7widgetplugin.cpp index d17a2ad..aa7d6a5 100644 --- a/src/imports/support/v7/widget/qtqmlandroidsupportv7widgetplugin.cpp +++ b/src/imports/support/v7/widget/qtqmlandroidsupportv7widgetplugin.cpp @@ -35,7 +35,11 @@ ****************************************************************************/ #include -#include +#include + +#include +#include +#include QT_BEGIN_NAMESPACE @@ -45,12 +49,16 @@ class QtQmlAndroidSupportV7WidgetPlugin: public QQmlExtensionPlugin Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0") public: - void registerTypes(const char *uri) - { - QtQmlAndroid::registerSupportV7WidgetModule(uri); - } + void registerTypes(const char *uri) override; }; +void QtQmlAndroidSupportV7WidgetPlugin::registerTypes(const char *uri) +{ + qmlRegisterType(uri, 0, 21, "CardView"); + qmlRegisterType(uri, 0, 21, "RecyclerAdapter"); + qmlRegisterType(uri, 0, 21, "RecyclerView"); +} + QT_END_NAMESPACE #include "qtqmlandroidsupportv7widgetplugin.moc" diff --git a/src/imports/view/animation/qtqmlandroidanimationplugin.cpp b/src/imports/view/animation/qtqmlandroidanimationplugin.cpp index 5f3221b..893d857 100644 --- a/src/imports/view/animation/qtqmlandroidanimationplugin.cpp +++ b/src/imports/view/animation/qtqmlandroidanimationplugin.cpp @@ -35,7 +35,24 @@ ****************************************************************************/ #include -#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include QT_BEGIN_NAMESPACE @@ -45,12 +62,30 @@ class QtQmlAndroidAnimationPlugin: public QQmlExtensionPlugin Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0") public: - void registerTypes(const char *uri) - { - QtQmlAndroid::registerAnimationModule(uri); - } + void registerTypes(const char *uri) override; }; +void QtQmlAndroidAnimationPlugin::registerTypes(const char *uri) +{ + qmlRegisterType(uri, 0, 21, "AccelerateDecelerateInterpolator"); + qmlRegisterType(uri, 0, 21, "AccelerateInterpolator"); + qmlRegisterType(uri, 0, 21, "AlphaAnimation"); + qmlRegisterType(uri, 0, 21, "Animation"); + qmlRegisterType(uri, 0, 21, "AnimationSet"); + qmlRegisterType(uri, 0, 21, "AnticipateInterpolator"); + qmlRegisterType(uri, 0, 21, "AnticipateOvershootInterpolator"); + qmlRegisterType(uri, 0, 21, "BounceInterpolator"); + qmlRegisterType(uri, 0, 21, "CycleInterpolator"); + qmlRegisterType(uri, 0, 21, "DecelerateInterpolator"); + qmlRegisterUncreatableType(uri, 0, 21, "Interpolator", QStringLiteral("Interpolator is abstract")); + qmlRegisterType(uri, 0, 21, "LinearInterpolator"); + qmlRegisterType(uri, 0, 21, "OvershootInterpolator"); + qmlRegisterType(uri, 0, 21, "PathInterpolator"); + qmlRegisterType(uri, 0, 21, "RotateAnimation"); + qmlRegisterType(uri, 0, 21, "ScaleAnimation"); + qmlRegisterType(uri, 0, 21, "TranslateAnimation"); +} + QT_END_NAMESPACE #include "qtqmlandroidanimationplugin.moc" diff --git a/src/imports/view/qtqmlandroidviewplugin.cpp b/src/imports/view/qtqmlandroidviewplugin.cpp index cb45e8a..e616913 100644 --- a/src/imports/view/qtqmlandroidviewplugin.cpp +++ b/src/imports/view/qtqmlandroidviewplugin.cpp @@ -35,7 +35,15 @@ ****************************************************************************/ #include -#include +#include + +#include +#include +#include +#include +#include +#include +#include QT_BEGIN_NAMESPACE @@ -45,12 +53,20 @@ class QtQmlAndroidViewPlugin: public QQmlExtensionPlugin Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0") public: - void registerTypes(const char *uri) - { - QtQmlAndroid::registerViewModule(uri); - } + void registerTypes(const char *uri) override; }; +void QtQmlAndroidViewPlugin::registerTypes(const char *uri) +{ + qmlRegisterUncreatableType(uri, 0, 21, "Gravity", QStringLiteral("Gravity is an enum")); + qmlRegisterUncreatableType(uri, 0, 21, "Layout", QStringLiteral("Layout is an attached property")); + qmlRegisterType(uri, 0, 21, "Menu"); + qmlRegisterType(uri, 0, 21, "MenuItem"); + qmlRegisterType(uri, 0, 21, "View"); + qmlRegisterType(uri, 0, 21, "ViewGroup"); + qmlRegisterType(); +} + QT_END_NAMESPACE #include "qtqmlandroidviewplugin.moc" diff --git a/src/imports/widget/qtqmlandroidwidgetplugin.cpp b/src/imports/widget/qtqmlandroidwidgetplugin.cpp index be00bea..4287ef5 100644 --- a/src/imports/widget/qtqmlandroidwidgetplugin.cpp +++ b/src/imports/widget/qtqmlandroidwidgetplugin.cpp @@ -35,7 +35,44 @@ ****************************************************************************/ #include -#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include QT_BEGIN_NAMESPACE @@ -45,12 +82,50 @@ class QtQmlAndroidWidgetPlugin: public QQmlExtensionPlugin Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0") public: - void registerTypes(const char *uri) - { - QtQmlAndroid::registerWidgetModule(uri); - } + void registerTypes(const char *uri) override; }; +void QtQmlAndroidWidgetPlugin::registerTypes(const char *uri) +{ + qmlRegisterType(uri, 0, 21, "ArrayAdapter"); + qmlRegisterType(); + qmlRegisterType(uri, 0, 21, "Button"); + qmlRegisterType(uri, 0, 21, "CalendarView"); + qmlRegisterType(uri, 0, 21, "CheckBox"); + qmlRegisterType(uri, 0, 21, "DatePicker"); + qmlRegisterType(uri, 0, 21, "EditText"); + qmlRegisterType(uri, 0, 21, "FrameLayout"); + qmlRegisterType(); + qmlRegisterType(uri, 0, 21, "ImageView"); + qmlRegisterType(uri, 0, 21, "LinearLayout"); + qmlRegisterType(); + qmlRegisterType(uri, 0, 21, "ListView"); + qmlRegisterType(uri, 0, 21, "NumberPicker"); + qmlRegisterType(uri, 0, 21, "PopupMenu"); + qmlRegisterType(uri, 0, 21, "ProgressBar"); + qmlRegisterType(uri, 0, 21, "RadioButton"); + qmlRegisterType(uri, 0, 21, "RadioGroup"); + qmlRegisterType(uri, 0, 21, "RatingBar"); + qmlRegisterType(uri, 0, 21, "RelativeLayout"); + qmlRegisterType(); + qmlRegisterType(uri, 0, 21, "ScrollView"); + qmlRegisterType(uri, 0, 21, "SearchView"); + qmlRegisterType(uri, 0, 21, "SeekBar"); + qmlRegisterType(uri, 0, 21, "Space"); + qmlRegisterType(uri, 0, 21, "Spinner"); + qmlRegisterType(uri, 0, 21, "Switch"); + qmlRegisterType(uri, 0, 21, "TabHost"); + qmlRegisterUncreatableType(uri, 0, 21, "TabSpec", QStringLiteral("TabSpec is an attached property")); + qmlRegisterType(uri, 0, 21, "TabWidget"); + qmlRegisterType(uri, 0, 21, "TextView"); + qmlRegisterType(uri, 0, 21, "TimePicker"); + qmlRegisterType(uri, 0, 21, "Toast"); + qmlRegisterType(uri, 0, 21, "ToggleButton"); + qmlRegisterType(uri, 0, 21, "ViewAnimator"); + qmlRegisterType(uri, 0, 21, "ViewFlipper"); + qmlRegisterType(uri, 0, 21, "ViewSwitcher"); +} + QT_END_NAMESPACE #include "qtqmlandroidwidgetplugin.moc" diff --git a/src/qmlandroid/app/app.pri b/src/qmlandroid/app/app.pri index 11105a7..f7951c0 100644 --- a/src/qmlandroid/app/app.pri +++ b/src/qmlandroid/app/app.pri @@ -5,13 +5,11 @@ HEADERS += \ $$PWD/qqmlandroidactivity_p.h \ $$PWD/qqmlandroidalertdialog_p.h \ $$PWD/qqmlandroiddialog_p.h \ - $$PWD/qqmlandroidservice_p.h \ - $$PWD/qtqmlandroidappmodule_p.h + $$PWD/qqmlandroidservice_p.h SOURCES += \ $$PWD/qqmlandroidactionbar.cpp \ $$PWD/qqmlandroidactivity.cpp \ $$PWD/qqmlandroidalertdialog.cpp \ $$PWD/qqmlandroiddialog.cpp \ - $$PWD/qqmlandroidservice.cpp \ - $$PWD/qtqmlandroidappmodule.cpp + $$PWD/qqmlandroidservice.cpp diff --git a/src/qmlandroid/app/qtqmlandroidappmodule.cpp b/src/qmlandroid/app/qtqmlandroidappmodule.cpp deleted file mode 100644 index ace291f..0000000 --- a/src/qmlandroid/app/qtqmlandroidappmodule.cpp +++ /dev/null @@ -1,62 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "qtqmlandroidappmodule_p.h" - -#include "qqmlandroidactionbar_p.h" -#include "qqmlandroidactivity_p.h" -#include "qqmlandroidalertdialog_p.h" -#include "qqmlandroiddialog_p.h" -#include "qqmlandroidservice_p.h" - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid { - -void registerAppModule(const char *uri) -{ - qmlRegisterType(uri, 0, 21, "ActionBar"); - qmlRegisterType(uri, 0, 21, "Activity"); - qmlRegisterType(uri, 0, 21, "AlertDialog"); - qmlRegisterType(uri, 0, 21, "Dialog"); - qmlRegisterType(uri, 0, 21, "Service"); -} - -} - -QT_END_NAMESPACE diff --git a/src/qmlandroid/app/qtqmlandroidappmodule_p.h b/src/qmlandroid/app/qtqmlandroidappmodule_p.h deleted file mode 100644 index 79944f7..0000000 --- a/src/qmlandroid/app/qtqmlandroidappmodule_p.h +++ /dev/null @@ -1,62 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QTQMLANDROIDAPPMODULE_P_H -#define QTQMLANDROIDAPPMODULE_P_H - -// -// W A R N I N G -// ------------- -// -// This file is not part of the Qt API. It exists purely as an -// implementation detail. This header file may change from version to -// version without notice, or even be removed. -// -// We mean it. -// - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid -{ - Q_QMLANDROID_EXPORT void registerAppModule(const char *uri); -} - -QT_END_NAMESPACE - -#endif // QTQMLANDROIDAPPMODULE_P_H diff --git a/src/qmlandroid/content/content.pri b/src/qmlandroid/content/content.pri index 3570e4a..6a48b09 100644 --- a/src/qmlandroid/content/content.pri +++ b/src/qmlandroid/content/content.pri @@ -3,11 +3,9 @@ INCLUDEPATH += $$PWD HEADERS += \ $$PWD/qqmlandroidcontext_p.h \ $$PWD/qqmlandroidcontextual_p.h \ - $$PWD/qqmlandroidcontextwrapper_p.h \ - $$PWD/qtqmlandroidcontentmodule_p.h + $$PWD/qqmlandroidcontextwrapper_p.h SOURCES += \ $$PWD/qqmlandroidcontext.cpp \ $$PWD/qqmlandroidcontextual.cpp \ - $$PWD/qqmlandroidcontextwrapper.cpp \ - $$PWD/qtqmlandroidcontentmodule.cpp + $$PWD/qqmlandroidcontextwrapper.cpp diff --git a/src/qmlandroid/content/qtqmlandroidcontentmodule.cpp b/src/qmlandroid/content/qtqmlandroidcontentmodule.cpp deleted file mode 100644 index 757a744..0000000 --- a/src/qmlandroid/content/qtqmlandroidcontentmodule.cpp +++ /dev/null @@ -1,54 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "qtqmlandroidcontentmodule_p.h" - -#include "qqmlandroidcontext_p.h" - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid { - -void registerContentModule(const char *uri) -{ - qmlRegisterUncreatableType(uri, 0, 21, "Context", QStringLiteral("Cannot create Context")); -} - -} - -QT_END_NAMESPACE diff --git a/src/qmlandroid/content/qtqmlandroidcontentmodule_p.h b/src/qmlandroid/content/qtqmlandroidcontentmodule_p.h deleted file mode 100644 index cd1535e..0000000 --- a/src/qmlandroid/content/qtqmlandroidcontentmodule_p.h +++ /dev/null @@ -1,62 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QTQMLANDROIDCONTENTMODULE_P_H -#define QTQMLANDROIDCONTENTMODULE_P_H - -// -// W A R N I N G -// ------------- -// -// This file is not part of the Qt API. It exists purely as an -// implementation detail. This header file may change from version to -// version without notice, or even be removed. -// -// We mean it. -// - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid -{ - Q_QMLANDROID_EXPORT void registerContentModule(const char *uri); -} - -QT_END_NAMESPACE - -#endif // QTQMLANDROIDCONTENTMODULE_P_H diff --git a/src/qmlandroid/graphics/drawable/drawable.pri b/src/qmlandroid/graphics/drawable/drawable.pri index 1960e87..6c04e80 100644 --- a/src/qmlandroid/graphics/drawable/drawable.pri +++ b/src/qmlandroid/graphics/drawable/drawable.pri @@ -2,10 +2,8 @@ INCLUDEPATH += $$PWD HEADERS += \ $$PWD/qqmlandroidcolordrawable_p.h \ - $$PWD/qqmlandroiddrawable_p.h \ - $$PWD/qtqmlandroiddrawablemodule_p.h + $$PWD/qqmlandroiddrawable_p.h SOURCES += \ $$PWD/qqmlandroidcolordrawable.cpp \ - $$PWD/qqmlandroiddrawable.cpp \ - $$PWD/qtqmlandroiddrawablemodule.cpp + $$PWD/qqmlandroiddrawable.cpp diff --git a/src/qmlandroid/graphics/drawable/qtqmlandroiddrawablemodule.cpp b/src/qmlandroid/graphics/drawable/qtqmlandroiddrawablemodule.cpp deleted file mode 100644 index f0a67d5..0000000 --- a/src/qmlandroid/graphics/drawable/qtqmlandroiddrawablemodule.cpp +++ /dev/null @@ -1,56 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "qtqmlandroiddrawablemodule_p.h" - -#include "qqmlandroidcolordrawable_p.h" -#include "qqmlandroiddrawable_p.h" - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid { - -void registerDrawableModule(const char *uri) -{ - qmlRegisterType(uri, 0, 21, "ColorDrawable"); - qmlRegisterType(uri, 0, 21, "Drawable"); -} - -} - -QT_END_NAMESPACE diff --git a/src/qmlandroid/graphics/drawable/qtqmlandroiddrawablemodule_p.h b/src/qmlandroid/graphics/drawable/qtqmlandroiddrawablemodule_p.h deleted file mode 100644 index 6f183a8..0000000 --- a/src/qmlandroid/graphics/drawable/qtqmlandroiddrawablemodule_p.h +++ /dev/null @@ -1,62 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QQMLANDROIDDRAWABLEMODULE_P_H -#define QQMLANDROIDDRAWABLEMODULE_P_H - -// -// W A R N I N G -// ------------- -// -// This file is not part of the Qt API. It exists purely as an -// implementation detail. This header file may change from version to -// version without notice, or even be removed. -// -// We mean it. -// - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid -{ - Q_QMLANDROID_EXPORT void registerDrawableModule(const char *uri); -} - -QT_END_NAMESPACE - -#endif // QQMLANDROIDDRAWABLEMODULE_P_H diff --git a/src/qmlandroid/graphics/graphics.pri b/src/qmlandroid/graphics/graphics.pri index 280aa37..7061563 100644 --- a/src/qmlandroid/graphics/graphics.pri +++ b/src/qmlandroid/graphics/graphics.pri @@ -1,11 +1,9 @@ INCLUDEPATH += $$PWD HEADERS += \ - $$PWD/qqmlandroidcolor_p.h \ - $$PWD/qtqmlandroidgraphicsmodule_p.h + $$PWD/qqmlandroidcolor_p.h SOURCES += \ - $$PWD/qqmlandroidcolor.cpp \ - $$PWD/qtqmlandroidgraphicsmodule.cpp + $$PWD/qqmlandroidcolor.cpp include(drawable/drawable.pri) diff --git a/src/qmlandroid/graphics/qtqmlandroidgraphicsmodule.cpp b/src/qmlandroid/graphics/qtqmlandroidgraphicsmodule.cpp deleted file mode 100644 index dc29652..0000000 --- a/src/qmlandroid/graphics/qtqmlandroidgraphicsmodule.cpp +++ /dev/null @@ -1,54 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "qtqmlandroidgraphicsmodule_p.h" - -#include "qqmlandroidcolor_p.h" - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid { - -void registerGraphicsModule(const char *uri) -{ - qmlRegisterSingletonType(uri, 0, 21, "Color", QQmlAndroidColor::provider); -} - -} - -QT_END_NAMESPACE diff --git a/src/qmlandroid/graphics/qtqmlandroidgraphicsmodule_p.h b/src/qmlandroid/graphics/qtqmlandroidgraphicsmodule_p.h deleted file mode 100644 index 93e9ebd..0000000 --- a/src/qmlandroid/graphics/qtqmlandroidgraphicsmodule_p.h +++ /dev/null @@ -1,62 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QTQMLANDROIDGRAPHICSMODULE_P_H -#define QTQMLANDROIDGRAPHICSMODULE_P_H - -// -// W A R N I N G -// ------------- -// -// This file is not part of the Qt API. It exists purely as an -// implementation detail. This header file may change from version to -// version without notice, or even be removed. -// -// We mean it. -// - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid -{ - Q_QMLANDROID_EXPORT void registerGraphicsModule(const char *uri); -} - -QT_END_NAMESPACE - -#endif // QTQMLANDROIDGRAPHICSMODULE_P_H diff --git a/src/qmlandroid/qmlandroid.pri b/src/qmlandroid/qmlandroid.pri index e58634a..d7ecc31 100644 --- a/src/qmlandroid/qmlandroid.pri +++ b/src/qmlandroid/qmlandroid.pri @@ -1,12 +1,10 @@ INCLUDEPATH += $$PWD HEADERS += \ - $$PWD/qqmlandroidr_p.h \ - $$PWD/qtqmlandroidmodule_p.h + $$PWD/qqmlandroidr_p.h SOURCES += \ - $$PWD/qqmlandroidr.cpp \ - $$PWD/qtqmlandroidmodule.cpp + $$PWD/qqmlandroidr.cpp include(app/app.pri) include(core/core.pri) diff --git a/src/qmlandroid/qtqmlandroidmodule.cpp b/src/qmlandroid/qtqmlandroidmodule.cpp deleted file mode 100644 index 10a86f4..0000000 --- a/src/qmlandroid/qtqmlandroidmodule.cpp +++ /dev/null @@ -1,54 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "qtqmlandroidmodule_p.h" - -#include "qqmlandroidr_p.h" - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid { - -void registerAndroidModule(const char *uri) -{ - qmlRegisterSingletonType(uri, 0, 21, "R", QQmlAndroidR::provider); -} - -} - -QT_END_NAMESPACE diff --git a/src/qmlandroid/qtqmlandroidmodule_p.h b/src/qmlandroid/qtqmlandroidmodule_p.h deleted file mode 100644 index 2a52985..0000000 --- a/src/qmlandroid/qtqmlandroidmodule_p.h +++ /dev/null @@ -1,62 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QTQMLANDROIDMODULE_P_H -#define QTQMLANDROIDMODULE_P_H - -// -// W A R N I N G -// ------------- -// -// This file is not part of the Qt API. It exists purely as an -// implementation detail. This header file may change from version to -// version without notice, or even be removed. -// -// We mean it. -// - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid -{ - Q_QMLANDROID_EXPORT void registerAndroidModule(const char *uri); -} - -QT_END_NAMESPACE - -#endif // QTQMLANDROIDMODULE_P_H diff --git a/src/qmlandroid/support/qtqmlandroidsupportmodule.cpp b/src/qmlandroid/support/qtqmlandroidsupportmodule.cpp deleted file mode 100644 index 82559b3..0000000 --- a/src/qmlandroid/support/qtqmlandroidsupportmodule.cpp +++ /dev/null @@ -1,74 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "qtqmlandroidsupportmodule_p.h" - -#include "qqmlandroiddrawerlayout_p.h" -#include "qqmlandroidswiperefreshlayout_p.h" - -#include "qqmlandroidactionbardrawertoggle_p.h" - -#include "qqmlandroidcardview_p.h" -#include "qqmlandroidrecycleradapter_p.h" -#include "qqmlandroidrecyclerview_p.h" - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid { - -void registerSupportV4WidgetModule(const char *uri) -{ - qmlRegisterType(uri, 0, 21, "DrawerLayout"); - qmlRegisterType(uri, 0, 21, "SwipeRefreshLayout"); -} - -void registerSupportV7AppModule(const char *uri) -{ - qmlRegisterType(uri, 0, 21, "ActionBarDrawerToggle"); -} - -void registerSupportV7WidgetModule(const char *uri) -{ - qmlRegisterType(uri, 0, 21, "CardView"); - qmlRegisterType(uri, 0, 21, "RecyclerAdapter"); - qmlRegisterType(uri, 0, 21, "RecyclerView"); -} - -} - -QT_END_NAMESPACE diff --git a/src/qmlandroid/support/qtqmlandroidsupportmodule_p.h b/src/qmlandroid/support/qtqmlandroidsupportmodule_p.h deleted file mode 100644 index fe9a7e1..0000000 --- a/src/qmlandroid/support/qtqmlandroidsupportmodule_p.h +++ /dev/null @@ -1,64 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QTQMLANDROIDSUPPORTMODULE_P_H -#define QTQMLANDROIDSUPPORTMODULE_P_H - -// -// W A R N I N G -// ------------- -// -// This file is not part of the Qt API. It exists purely as an -// implementation detail. This header file may change from version to -// version without notice, or even be removed. -// -// We mean it. -// - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid -{ - Q_QMLANDROID_EXPORT void registerSupportV4WidgetModule(const char *uri); - Q_QMLANDROID_EXPORT void registerSupportV7AppModule(const char *uri); - Q_QMLANDROID_EXPORT void registerSupportV7WidgetModule(const char *uri); -} - -QT_END_NAMESPACE - -#endif // QTQMLANDROIDSUPPORTMODULE_P_H diff --git a/src/qmlandroid/support/support.pri b/src/qmlandroid/support/support.pri index c49bafe..6c62701 100644 --- a/src/qmlandroid/support/support.pri +++ b/src/qmlandroid/support/support.pri @@ -1,10 +1,2 @@ -INCLUDEPATH += $$PWD - -HEADERS += \ - $$PWD/qtqmlandroidsupportmodule_p.h - -SOURCES += \ - $$PWD/qtqmlandroidsupportmodule.cpp - include(v4/v4.pri) include(v7/v7.pri) diff --git a/src/qmlandroid/view/animation/animation.pri b/src/qmlandroid/view/animation/animation.pri index 6b0caee..0a90fd9 100644 --- a/src/qmlandroid/view/animation/animation.pri +++ b/src/qmlandroid/view/animation/animation.pri @@ -17,8 +17,7 @@ HEADERS += \ $$PWD/qqmlandroidpathinterpolator_p.h \ $$PWD/qqmlandroidrotateanimation_p.h \ $$PWD/qqmlandroidscaleanimation_p.h \ - $$PWD/qqmlandroidtranslateanimation_p.h \ - $$PWD/qtqmlandroidanimationmodule_p.h + $$PWD/qqmlandroidtranslateanimation_p.h SOURCES += \ $$PWD/qqmlandroidacceleratedecelerateinterpolator.cpp \ @@ -37,5 +36,4 @@ SOURCES += \ $$PWD/qqmlandroidpathinterpolator.cpp \ $$PWD/qqmlandroidrotateanimation.cpp \ $$PWD/qqmlandroidscaleanimation.cpp \ - $$PWD/qqmlandroidtranslateanimation.cpp \ - $$PWD/qtqmlandroidanimationmodule.cpp + $$PWD/qqmlandroidtranslateanimation.cpp diff --git a/src/qmlandroid/view/animation/qtqmlandroidanimationmodule.cpp b/src/qmlandroid/view/animation/qtqmlandroidanimationmodule.cpp deleted file mode 100644 index fc8d86b..0000000 --- a/src/qmlandroid/view/animation/qtqmlandroidanimationmodule.cpp +++ /dev/null @@ -1,85 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "qtqmlandroidanimationmodule_p.h" - -#include "qqmlandroidacceleratedecelerateinterpolator_p.h" -#include "qqmlandroidaccelerateinterpolator_p.h" -#include "qqmlandroidalphaanimation_p.h" -#include "qqmlandroidanimation_p.h" -#include "qqmlandroidanimationset_p.h" -#include "qqmlandroidanticipateinterpolator_p.h" -#include "qqmlandroidanticipateovershootinterpolator_p.h" -#include "qqmlandroidbounceinterpolator_p.h" -#include "qqmlandroidcycleinterpolator_p.h" -#include "qqmlandroiddecelerateinterpolator_p.h" -#include "qqmlandroidlinearinterpolator_p.h" -#include "qqmlandroidovershootinterpolator_p.h" -#include "qqmlandroidpathinterpolator_p.h" -#include "qqmlandroidrotateanimation_p.h" -#include "qqmlandroidscaleanimation_p.h" -#include "qqmlandroidtranslateanimation_p.h" - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid { - -void registerAnimationModule(const char *uri) -{ - qmlRegisterType(uri, 0, 21, "AccelerateDecelerateInterpolator"); - qmlRegisterType(uri, 0, 21, "AccelerateInterpolator"); - qmlRegisterType(uri, 0, 21, "AlphaAnimation"); - qmlRegisterType(uri, 0, 21, "Animation"); - qmlRegisterType(uri, 0, 21, "AnimationSet"); - qmlRegisterType(uri, 0, 21, "AnticipateInterpolator"); - qmlRegisterType(uri, 0, 21, "AnticipateOvershootInterpolator"); - qmlRegisterType(uri, 0, 21, "BounceInterpolator"); - qmlRegisterType(uri, 0, 21, "CycleInterpolator"); - qmlRegisterType(uri, 0, 21, "DecelerateInterpolator"); - qmlRegisterUncreatableType(uri, 0, 21, "Interpolator", QStringLiteral("Interpolator is abstract")); - qmlRegisterType(uri, 0, 21, "LinearInterpolator"); - qmlRegisterType(uri, 0, 21, "OvershootInterpolator"); - qmlRegisterType(uri, 0, 21, "PathInterpolator"); - qmlRegisterType(uri, 0, 21, "RotateAnimation"); - qmlRegisterType(uri, 0, 21, "ScaleAnimation"); - qmlRegisterType(uri, 0, 21, "TranslateAnimation"); -} - -} - -QT_END_NAMESPACE diff --git a/src/qmlandroid/view/animation/qtqmlandroidanimationmodule_p.h b/src/qmlandroid/view/animation/qtqmlandroidanimationmodule_p.h deleted file mode 100644 index 29237a5..0000000 --- a/src/qmlandroid/view/animation/qtqmlandroidanimationmodule_p.h +++ /dev/null @@ -1,62 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QTQMLANDROIDANIMATIONMODULE_P_H -#define QTQMLANDROIDANIMATIONMODULE_P_H - -// -// W A R N I N G -// ------------- -// -// This file is not part of the Qt API. It exists purely as an -// implementation detail. This header file may change from version to -// version without notice, or even be removed. -// -// We mean it. -// - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid -{ - Q_QMLANDROID_EXPORT void registerAnimationModule(const char *uri); -} - -QT_END_NAMESPACE - -#endif // QTQMLANDROIDANIMATIONMODULE_P_H diff --git a/src/qmlandroid/view/qtqmlandroidviewmodule.cpp b/src/qmlandroid/view/qtqmlandroidviewmodule.cpp deleted file mode 100644 index 2010b63..0000000 --- a/src/qmlandroid/view/qtqmlandroidviewmodule.cpp +++ /dev/null @@ -1,66 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "qtqmlandroidviewmodule_p.h" - -#include "qqmlandroidgravity_p.h" -#include "qqmlandroidlayoutparams_p.h" -#include "qqmlandroidmenu_p.h" -#include "qqmlandroidmenuitem_p.h" -#include "qqmlandroidview_p.h" -#include "qqmlandroidviewgroup_p.h" -#include "qqmlandroidwindow_p.h" - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid { - -void registerViewModule(const char *uri) -{ - qmlRegisterUncreatableType(uri, 0, 21, "Gravity", QStringLiteral("Gravity is an enum")); - qmlRegisterUncreatableType(uri, 0, 21, "Layout", QStringLiteral("Layout is an attached property")); - qmlRegisterType(uri, 0, 21, "Menu"); - qmlRegisterType(uri, 0, 21, "MenuItem"); - qmlRegisterType(uri, 0, 21, "View"); - qmlRegisterType(uri, 0, 21, "ViewGroup"); - qmlRegisterType(); -} - -} - -QT_END_NAMESPACE diff --git a/src/qmlandroid/view/qtqmlandroidviewmodule_p.h b/src/qmlandroid/view/qtqmlandroidviewmodule_p.h deleted file mode 100644 index 89f2246..0000000 --- a/src/qmlandroid/view/qtqmlandroidviewmodule_p.h +++ /dev/null @@ -1,62 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QTQMLANDROIDVIEWMODULE_P_H -#define QTQMLANDROIDVIEWMODULE_P_H - -// -// W A R N I N G -// ------------- -// -// This file is not part of the Qt API. It exists purely as an -// implementation detail. This header file may change from version to -// version without notice, or even be removed. -// -// We mean it. -// - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid -{ - Q_QMLANDROID_EXPORT void registerViewModule(const char *uri); -} - -QT_END_NAMESPACE - -#endif // QTQMLANDROIDVIEWMODULE_P_H diff --git a/src/qmlandroid/view/view.pri b/src/qmlandroid/view/view.pri index 6705bd5..1647d73 100644 --- a/src/qmlandroid/view/view.pri +++ b/src/qmlandroid/view/view.pri @@ -7,8 +7,7 @@ HEADERS += \ $$PWD/qqmlandroidmenuitem_p.h \ $$PWD/qqmlandroidview_p.h \ $$PWD/qqmlandroidviewgroup_p.h \ - $$PWD/qqmlandroidwindow_p.h \ - $$PWD/qtqmlandroidviewmodule_p.h + $$PWD/qqmlandroidwindow_p.h SOURCES += \ $$PWD/qqmlandroidlayoutparams.cpp \ @@ -16,7 +15,6 @@ SOURCES += \ $$PWD/qqmlandroidmenuitem.cpp \ $$PWD/qqmlandroidview.cpp \ $$PWD/qqmlandroidviewgroup.cpp \ - $$PWD/qqmlandroidwindow.cpp \ - $$PWD/qtqmlandroidviewmodule.cpp + $$PWD/qqmlandroidwindow.cpp include(animation/animation.pri) diff --git a/src/qmlandroid/widget/qtqmlandroidwidgetmodule.cpp b/src/qmlandroid/widget/qtqmlandroidwidgetmodule.cpp deleted file mode 100644 index 364d7f8..0000000 --- a/src/qmlandroid/widget/qtqmlandroidwidgetmodule.cpp +++ /dev/null @@ -1,125 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "qtqmlandroidwidgetmodule_p.h" - -#include "qqmlandroidarrayadapter_p.h" -#include "qqmlandroidbutton_p.h" -#include "qqmlandroidcalendarview_p.h" -#include "qqmlandroidcheckbox_p.h" -#include "qqmlandroiddatepicker_p.h" -#include "qqmlandroidedittext_p.h" -#include "qqmlandroidframelayout_p.h" -#include "qqmlandroidframelayoutparams_p.h" -#include "qqmlandroidimageview_p.h" -#include "qqmlandroidlinearlayout_p.h" -#include "qqmlandroidlinearlayoutparams_p.h" -#include "qqmlandroidlistview_p.h" -#include "qqmlandroidnumberpicker_p.h" -#include "qqmlandroidpopupmenu_p.h" -#include "qqmlandroidprogressbar_p.h" -#include "qqmlandroidradiobutton_p.h" -#include "qqmlandroidradiogroup_p.h" -#include "qqmlandroidratingbar_p.h" -#include "qqmlandroidrelativelayout_p.h" -#include "qqmlandroidrelativelayoutparams_p.h" -#include "qqmlandroidscrollview_p.h" -#include "qqmlandroidsearchview_p.h" -#include "qqmlandroidseekbar_p.h" -#include "qqmlandroidspace_p.h" -#include "qqmlandroidspinner_p.h" -#include "qqmlandroidswitch_p.h" -#include "qqmlandroidtabhost_p.h" -#include "qqmlandroidtabspec_p.h" -#include "qqmlandroidtabwidget_p.h" -#include "qqmlandroidtextview_p.h" -#include "qqmlandroidtimepicker_p.h" -#include "qqmlandroidtoast_p.h" -#include "qqmlandroidtogglebutton_p.h" -#include "qqmlandroidviewanimator_p.h" -#include "qqmlandroidviewflipper_p.h" -#include "qqmlandroidviewswitcher_p.h" - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid { - -void registerWidgetModule(const char *uri) -{ - qmlRegisterType(uri, 0, 21, "ArrayAdapter"); - qmlRegisterType(); - qmlRegisterType(uri, 0, 21, "Button"); - qmlRegisterType(uri, 0, 21, "CalendarView"); - qmlRegisterType(uri, 0, 21, "CheckBox"); - qmlRegisterType(uri, 0, 21, "DatePicker"); - qmlRegisterType(uri, 0, 21, "EditText"); - qmlRegisterType(uri, 0, 21, "FrameLayout"); - qmlRegisterType(); - qmlRegisterType(uri, 0, 21, "ImageView"); - qmlRegisterType(uri, 0, 21, "LinearLayout"); - qmlRegisterType(); - qmlRegisterType(uri, 0, 21, "ListView"); - qmlRegisterType(uri, 0, 21, "NumberPicker"); - qmlRegisterType(uri, 0, 21, "PopupMenu"); - qmlRegisterType(uri, 0, 21, "ProgressBar"); - qmlRegisterType(uri, 0, 21, "RadioButton"); - qmlRegisterType(uri, 0, 21, "RadioGroup"); - qmlRegisterType(uri, 0, 21, "RatingBar"); - qmlRegisterType(uri, 0, 21, "RelativeLayout"); - qmlRegisterType(); - qmlRegisterType(uri, 0, 21, "ScrollView"); - qmlRegisterType(uri, 0, 21, "SearchView"); - qmlRegisterType(uri, 0, 21, "SeekBar"); - qmlRegisterType(uri, 0, 21, "Space"); - qmlRegisterType(uri, 0, 21, "Spinner"); - qmlRegisterType(uri, 0, 21, "Switch"); - qmlRegisterType(uri, 0, 21, "TabHost"); - qmlRegisterUncreatableType(uri, 0, 21, "TabSpec", QStringLiteral("TabSpec is an attached property")); - qmlRegisterType(uri, 0, 21, "TabWidget"); - qmlRegisterType(uri, 0, 21, "TextView"); - qmlRegisterType(uri, 0, 21, "TimePicker"); - qmlRegisterType(uri, 0, 21, "Toast"); - qmlRegisterType(uri, 0, 21, "ToggleButton"); - qmlRegisterType(uri, 0, 21, "ViewAnimator"); - qmlRegisterType(uri, 0, 21, "ViewFlipper"); - qmlRegisterType(uri, 0, 21, "ViewSwitcher"); -} - -} - -QT_END_NAMESPACE diff --git a/src/qmlandroid/widget/qtqmlandroidwidgetmodule_p.h b/src/qmlandroid/widget/qtqmlandroidwidgetmodule_p.h deleted file mode 100644 index 8ee3195..0000000 --- a/src/qmlandroid/widget/qtqmlandroidwidgetmodule_p.h +++ /dev/null @@ -1,62 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing/ -** -** This file is part of the Qt QML Android module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL3$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see http://www.qt.io/terms-conditions. For further -** information use the contact form at http://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPLv3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or later as published by the Free -** Software Foundation and appearing in the file LICENSE.GPL included in -** the packaging of this file. Please review the following information to -** ensure the GNU General Public License version 2.0 requirements will be -** met: http://www.gnu.org/licenses/gpl-2.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QTQMLANDROIDWIDGETMODULE_P_H -#define QTQMLANDROIDWIDGETMODULE_P_H - -// -// W A R N I N G -// ------------- -// -// This file is not part of the Qt API. It exists purely as an -// implementation detail. This header file may change from version to -// version without notice, or even be removed. -// -// We mean it. -// - -#include - -QT_BEGIN_NAMESPACE - -namespace QtQmlAndroid -{ - Q_QMLANDROID_EXPORT void registerWidgetModule(const char *uri); -} - -QT_END_NAMESPACE - -#endif // QTQMLANDROIDWIDGETMODULE_P_H diff --git a/src/qmlandroid/widget/widget.pri b/src/qmlandroid/widget/widget.pri index 3e25b44..22d5aea 100644 --- a/src/qmlandroid/widget/widget.pri +++ b/src/qmlandroid/widget/widget.pri @@ -41,8 +41,7 @@ HEADERS += \ $$PWD/qqmlandroidtogglebutton_p.h \ $$PWD/qqmlandroidviewanimator_p.h \ $$PWD/qqmlandroidviewflipper_p.h \ - $$PWD/qqmlandroidviewswitcher_p.h \ - $$PWD/qtqmlandroidwidgetmodule_p.h + $$PWD/qqmlandroidviewswitcher_p.h SOURCES += \ $$PWD/qqmlandroidabsseekbar.cpp \ @@ -85,5 +84,4 @@ SOURCES += \ $$PWD/qqmlandroidtogglebutton.cpp \ $$PWD/qqmlandroidviewanimator.cpp \ $$PWD/qqmlandroidviewflipper.cpp \ - $$PWD/qqmlandroidviewswitcher.cpp \ - $$PWD/qtqmlandroidwidgetmodule.cpp + $$PWD/qqmlandroidviewswitcher.cpp -- cgit v1.2.3