add icon
This commit is contained in:
@ -36,6 +36,8 @@ qt_add_qml_module(appscheincommander
|
|||||||
URI scheincommander
|
URI scheincommander
|
||||||
VERSION 1.0
|
VERSION 1.0
|
||||||
RESOURCES
|
RESOURCES
|
||||||
|
scheincommander.png
|
||||||
|
scheincommander.ico
|
||||||
icons/movinghead.png
|
icons/movinghead.png
|
||||||
icons/nebelmaschine.png
|
icons/nebelmaschine.png
|
||||||
icons/rgbstrahler.png
|
icons/rgbstrahler.png
|
||||||
|
4
main.cpp
4
main.cpp
@ -3,6 +3,7 @@
|
|||||||
#include <QQmlApplicationEngine>
|
#include <QQmlApplicationEngine>
|
||||||
#include <QQmlContext>
|
#include <QQmlContext>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
#include <QIcon>
|
||||||
|
|
||||||
#include "dmxcontroller.h"
|
#include "dmxcontroller.h"
|
||||||
#include "scheincommandersettings.h"
|
#include "scheincommandersettings.h"
|
||||||
@ -31,6 +32,9 @@ int main(int argc, char *argv[])
|
|||||||
QCoreApplication::setApplicationVersion(STR(CMAKE_PROJECT_VERSION));
|
QCoreApplication::setApplicationVersion(STR(CMAKE_PROJECT_VERSION));
|
||||||
|
|
||||||
QGuiApplication app{argc, argv};
|
QGuiApplication app{argc, argv};
|
||||||
|
QIcon icon{":/scheincommander/scheincommander.png"};
|
||||||
|
qDebug() << icon.availableSizes();
|
||||||
|
app.setWindowIcon(icon);
|
||||||
|
|
||||||
QCommandLineParser parser;
|
QCommandLineParser parser;
|
||||||
parser.addHelpOption();
|
parser.addHelpOption();
|
||||||
|
BIN
scheincommander.ico
Normal file
BIN
scheincommander.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
scheincommander.png
Normal file
BIN
scheincommander.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Reference in New Issue
Block a user