1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-15 06:52:34 +02:00
This commit is contained in:
Elias Steurer 2019-10-06 09:10:38 +02:00
parent f23ab003d5
commit 9e4a1f3ace
2 changed files with 9 additions and 2 deletions

View File

@ -1,11 +1,18 @@
#include "app.h"
#include <QGuiApplication>
#include <QQuickWindow>
#include <qqml.h>
#include "app.h"
int main(int argc, char* argv[])
{
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication qtGuiApp(argc, argv);
QGuiApplication::setWindowIcon(QIcon(":/assets/icons/favicon.ico"));
qmlRegisterSingletonType<App>("ScreenPlay", 1, 0, "ScreenPlay", [](QQmlEngine* engine, QJSEngine*) -> QObject* {
engine->setObjectOwnership(App::instance(), QQmlEngine::ObjectOwnership::CppOwnership);
return App::instance();

View File

@ -16,7 +16,7 @@ import "qml/Navigation"
ApplicationWindow {
id: window
color: "#eeeeee"
// Set visible if the -silent parameter was not set (see main.cpp:87).
// Set visible if the -silent parameter was not set (see main.cpp:19).
visible: false
width: 1400
height: 788