summaryrefslogtreecommitdiffstats
path: root/src/qmlandroid/view/qtqmlandroidviewmodule.cpp
blob: 687ea24994d0fd6eb482fc274a88fb94927e5f71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#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 <QtQml/qqml.h>

QT_BEGIN_NAMESPACE

namespace QtQmlAndroid {

void registerViewModule(const char *uri)
{
    qmlRegisterUncreatableType<QQmlAndroidGravity>(uri, 0, 21, "Gravity", QStringLiteral("Gravity is an enum"));
    qmlRegisterUncreatableType<QQmlAndroidLayoutParams>(uri, 0, 21, "Layout", QStringLiteral("Layout is an attached property"));
    qmlRegisterType<QQmlAndroidMenu>(uri, 0, 21, "Menu");
    qmlRegisterType<QQmlAndroidMenuItem>(uri, 0, 21, "MenuItem");
    qmlRegisterType<QQmlAndroidView>(uri, 0, 21, "View");
    qmlRegisterType<QQmlAndroidViewGroup>(uri, 0, 21, "ViewGroup");
    qmlRegisterType<QQmlAndroidWindow>();
}

}

QT_END_NAMESPACE