diff options
author | Matt Porter <mporter@konsulko.com> | 2018-05-22 11:33:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2018-05-22 11:33:10 +0000 |
commit | 361f599d0786b0b2729350a622c2a32a6a4862b5 (patch) | |
tree | 3337212cb405995d5247aa03197be298576e896a /app/main.cpp | |
parent | 4555731ec96de6e2ff29105e3a50df51a8278d2a (diff) | |
parent | b00822fe8b233f33adca86f93e5c1b90050983aa (diff) |
Merge "contacts: handle multiple numbers and types"
Diffstat (limited to 'app/main.cpp')
-rw-r--r-- | app/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/main.cpp b/app/main.cpp index 6fd0e9a..ea6c8b5 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -28,6 +28,7 @@ #include <telephony.h> #include "phone.h" +#include "numbertype.h" int main(int argc, char *argv[]) { @@ -98,6 +99,8 @@ int main(int argc, char *argv[]) } }); + qmlRegisterUncreatableType<NumberType>("NumberType", 1, 0, "NumberType", "Not creatable as it is an enum type"); + engine.load(QUrl(QStringLiteral("qrc:/Phone.qml"))); QObject *root = engine.rootObjects().first(); QQuickWindow *window = qobject_cast<QQuickWindow *>(root); |