mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 16:32:33 +02:00
Fix icon
This commit is contained in:
parent
f23ab003d5
commit
9e4a1f3ace
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user