Add app icon

This commit is contained in:
2022-04-07 16:17:52 +02:00
parent 4344a11385
commit 5a8582c8b0
6 changed files with 8 additions and 0 deletions
+3
View File
@@ -33,6 +33,9 @@ set(TENMON_SRC
) )
qt5_add_resources(TENMON_SRC resources.qrc) qt5_add_resources(TENMON_SRC resources.qrc)
if(WIN32)
list(APPEND TENMON_SRC icon.rc)
endif(WIN32)
add_executable(tenmon ${TENMON_SRC}) add_executable(tenmon ${TENMON_SRC})
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

+1
View File
@@ -0,0 +1 @@
IDI_ICON1 ICON DISCARDABLE "icon.ico"
+1
View File
@@ -14,6 +14,7 @@ int main(int argc, char *argv[])
QApplication a(argc, argv); QApplication a(argc, argv);
a.setOrganizationName("nou"); a.setOrganizationName("nou");
a.setApplicationName("Tenmon"); a.setApplicationName("Tenmon");
a.setWindowIcon(QIcon(":/icon.png"));
MainWindow w; MainWindow w;
w.show(); w.show();
+3
View File
@@ -3,4 +3,7 @@
<file>image.frag</file> <file>image.frag</file>
<file>image.vert</file> <file>image.vert</file>
</qresource> </qresource>
<qresource prefix="/">
<file>icon.png</file>
</qresource>
</RCC> </RCC>