use icon for window

This commit is contained in:
Malte Jürgens 2022-07-28 18:36:09 +02:00
parent 1ab00ee774
commit 674ac146f2
No known key found for this signature in database
GPG Key ID: D29FBD5F93C0CFC3
2 changed files with 3 additions and 0 deletions

View File

@ -2,5 +2,6 @@
<RCC> <RCC>
<qresource> <qresource>
<file>assets/userscript.js</file> <file>assets/userscript.js</file>
<file>assets/de.shorsh.discord-screenaudio.png</file>
</qresource> </qresource>
</RCC> </RCC>

View File

@ -7,6 +7,8 @@
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
QApplication app(argc, argv); QApplication app(argc, argv);
QApplication::setApplicationName("discord-screenaudio"); QApplication::setApplicationName("discord-screenaudio");
QApplication::setWindowIcon(
QIcon(":assets/de.shorsh.discord-screenaudio.png"));
QApplication::setApplicationVersion(DISCORD_SCEENAUDIO_VERSION_FULL); QApplication::setApplicationVersion(DISCORD_SCEENAUDIO_VERSION_FULL);
QCommandLineParser parser; QCommandLineParser parser;