Beginnings of settings page (#2)

* Make Moonlight icon the window icon for all windows

* Add dummy settings

* Add slider

* FIx comments
This commit is contained in:
Michelle Bergeron
2018-07-08 10:19:08 -07:00
committed by GitHub
parent 7bc139c50d
commit 8ebb594089
2 changed files with 99 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QIcon>
// Don't let SDL hook our main function, since Qt is already
// doing the same thing. This needs to be before any headers
@@ -29,6 +30,9 @@ int main(int argc, char *argv[])
QGuiApplication app(argc, argv);
// FIXME this icon is low-resolution and appears a little fuzzy.
app.setWindowIcon(QIcon(":/res/icon128.png"));
// Register our C++ types for QML
qmlRegisterType<ComputerModel>("ComputerModel", 1, 0, "ComputerModel");
qmlRegisterType<AppModel>("AppModel", 1, 0, "AppModel");