From 31800079b75cd538a695bf78007bf198b8980bee Mon Sep 17 00:00:00 2001 From: Riccardo Binetti Date: Thu, 18 Aug 2016 15:13:52 +0200 Subject: [PATCH] main: set window icon This probably only has effect on Windows --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 32bfdba..dab2fe4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include "CartController.h" @@ -9,6 +10,8 @@ int main(int argc, char *argv[]) qmlRegisterType("EmsQart", 1, 0, "CartController"); QApplication app(argc, argv); + app.setWindowIcon(QIcon(QStringLiteral("qrc:/images/ems-qart.icon"))); + QQmlApplicationEngine engine(QUrl(QStringLiteral("qrc:/qml/MainView.qml"))); return app.exec();