WIP Quick GUI work

This commit is contained in:
Cameron Gutman 2018-07-04 16:40:21 -07:00
commit 3a7d3c807e
12 changed files with 223 additions and 60 deletions

View file

@ -1,7 +1,7 @@
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include "backend/nvhttp.h"
#include "gui/computermodel.h"
// Don't let SDL hook our main function, since Qt is already
// doing the same thing
@ -26,6 +26,9 @@ int main(int argc, char *argv[])
QGuiApplication app(argc, argv);
// Register our C++ types for QML
qmlRegisterType<ComputerModel>("ComputerModel", 1, 0, "ComputerModel");
// Load the main.qml file
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/gui/main.qml")));