qmlfrontend/main.cpp
author unc0rr
Sun, 24 Dec 2017 00:44:16 +0100
branchqmlfrontend
changeset 12858 0c6fb706f747
parent 12857 90f927b4b9e1
child 12860 e33bcb9d5e9c
permissions -rw-r--r--
More refactoring in attempt to move away from frontlib
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12854
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     1
#include <QGuiApplication>
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     2
#include <QQmlApplicationEngine>
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     3
12857
90f927b4b9e1 Start hacking new frontend
unc0rr
parents: 12854
diff changeset
     4
#include "hwengine.h"
90f927b4b9e1 Start hacking new frontend
unc0rr
parents: 12854
diff changeset
     5
12854
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     6
int main(int argc, char *argv[])
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     7
{
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     8
  QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
     9
  QGuiApplication app(argc, argv);
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    10
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    11
  QQmlApplicationEngine engine;
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    12
  engine.load(QUrl(QLatin1String("qrc:/main.qml")));
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    13
  if (engine.rootObjects().isEmpty())
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    14
    return -1;
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    15
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    16
  return app.exec();
28cb18c5e712 Add new qmlfrontend project template
unc0rr
parents:
diff changeset
    17
}