2022-05-13 13:12:05 +00:00
|
|
|
// Copyright (C) 2017 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2016-11-15 16:22:40 +00:00
|
|
|
|
|
|
|
#include <QGuiApplication>
|
|
|
|
#include <QQmlApplicationEngine>
|
|
|
|
|
2016-11-17 21:15:53 +00:00
|
|
|
#include "contactmodel.h"
|
2016-11-17 21:08:19 +00:00
|
|
|
|
2016-11-15 16:22:40 +00:00
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QGuiApplication app(argc, argv);
|
|
|
|
|
2016-11-17 21:15:53 +00:00
|
|
|
qmlRegisterType<ContactModel>("Backend", 1, 0, "ContactModel");
|
2016-11-15 16:22:40 +00:00
|
|
|
|
|
|
|
QQmlApplicationEngine engine;
|
|
|
|
engine.load(QUrl(QStringLiteral("qrc:/contactlist.qml")));
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|