[kde-doc-english] [trojita] /: GUI: add support for application icon on Windows

Jan Kundrát jkt at flaska.net
Sun Aug 18 09:09:21 UTC 2013


Git commit c008b4d795886cb34667cea7c4947c15a3cd8e96 by Jan Kundrát, on behalf of Christian Degenkolb.
Committed on 16/08/2013 at 18:59.
Pushed by jkt into branch 'master'.

GUI: add support for application icon on Windows

Signed-off-by: Jan Kundrát <jkt at flaska.net>

BUG: 323658

M  +1    -1    CMakeLists.txt
A  +-    --    src/icons/trojita.ico
A  +1    -0    src/trojita_ico_win32.rc

http://commits.kde.org/trojita/c008b4d795886cb34667cea7c4947c15a3cd8e96

diff --git a/CMakeLists.txt b/CMakeLists.txt
index be34629..819b304 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -675,7 +675,7 @@ if(BUILD_DESKTOP_GUI)
 
     if(WIN32) # Check if we are on Windows
         # build a real Win32 GUI application. Hide the console window
-        add_executable(trojita WIN32 ${trojita_desktop_SOURCES} ${trojita_QM})
+        add_executable(trojita WIN32 ${trojita_desktop_SOURCES} ${trojita_QM} ${CMAKE_CURRENT_SOURCE_DIR}/src/trojita_ico_win32.rc)
         target_link_libraries(trojita ${QT_QTMAIN_LIBRARY} ${QT_LIBRARIES})
     else()
         add_executable(trojita ${trojita_desktop_SOURCES} ${trojita_QM})
diff --git a/src/icons/trojita.ico b/src/icons/trojita.ico
new file mode 100644
index 0000000..62f069b
Binary files /dev/null and b/src/icons/trojita.ico differ
diff --git a/src/trojita_ico_win32.rc b/src/trojita_ico_win32.rc
new file mode 100644
index 0000000..78ff6ba
--- /dev/null
+++ b/src/trojita_ico_win32.rc
@@ -0,0 +1 @@
+IDI_ICON1   ICON    DISCARDABLE "./icons/trojita.ico"
\ No newline at end of file


More information about the kde-doc-english mailing list