From d8431223d34476a17835a05d9508e92447f22479 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 15 Aug 2015 16:06:00 +0200 Subject: Restructure QML and JS sources `list` holds the components of the central list UI element. `command` holds the UI and implementation parts of the command mode. `widget` holds more or less general purpose elements that may also be of use in other circumstances. --- main.cc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 main.cc (limited to 'main.cc') diff --git a/main.cc b/main.cc new file mode 100644 index 0000000..617b43a --- /dev/null +++ b/main.cc @@ -0,0 +1,19 @@ +#include +#include + +int main(int argc, char *argv[]) { + QApplication application(argc, argv); + application.setOrganizationName("akr"); + application.setApplicationName("MetaTerm"); + + QQmlApplicationEngine engine(QUrl(QStringLiteral("qrc:/main.qml"))); + + QObject::connect( + static_cast(&engine), + SIGNAL(quit()), + static_cast(&application), + SLOT(quit()) + ); + + return application.exec(); +} -- cgit v1.2.3