diff options
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); |