Start work on launching a stream from QML and rip out remaining QtWidgets

This commit is contained in:
Cameron Gutman
2018-07-07 16:30:26 -07:00
parent d5cc07f107
commit 60ad95bb7b
11 changed files with 83 additions and 55 deletions

View File

@@ -3,6 +3,7 @@
#include "gui/computermodel.h"
#include "gui/appmodel.h"
#include "streaming/session.hpp"
// Don't let SDL hook our main function, since Qt is already
// doing the same thing
@@ -30,6 +31,7 @@ int main(int argc, char *argv[])
// Register our C++ types for QML
qmlRegisterType<ComputerModel>("ComputerModel", 1, 0, "ComputerModel");
qmlRegisterType<AppModel>("AppModel", 1, 0, "AppModel");
qmlRegisterUncreatableType<Session>("Session", 1, 0, "Session", "Session cannot be created from QML");
qmlRegisterSingletonType<ComputerManager>("ComputerManager", 1, 0,
"ComputerManager",
[](QQmlEngine*, QJSEngine*) -> QObject* {