Skip to content

Commit

Permalink
main: set window icon
Browse files Browse the repository at this point in the history
This probably only has effect on Windows
  • Loading branch information
rbino committed Aug 18, 2016
1 parent 39fe0b5 commit 3180007
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <QApplication>
#include <QQmlApplicationEngine>
#include <QtQml>
#include <QIcon>

#include "CartController.h"

Expand All @@ -9,6 +10,8 @@ int main(int argc, char *argv[])
qmlRegisterType<CartController>("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();
Expand Down

0 comments on commit 3180007

Please sign in to comment.