aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
blob: 9eb9e40566a92b57ddb474b87920a2eed5a16c8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <QQmlContext>
#include <QGuiApplication>
#include <QQmlApplicationEngine>

#include "symedit.h"

int main(int argc, char *argv[])
{
	QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

	QGuiApplication app(argc, argv);

	SymEdit manager;

	QQmlApplicationEngine engine;
	engine.rootContext()->setContextProperty("manager", &manager);

	engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
	if ( engine.rootObjects().isEmpty() )
		return -1;

	return app.exec();
}