summaryrefslogtreecommitdiffstats
path: root/src/corelib/Qt6CoreMacros.cmake
diff options
context:
space:
mode:
authorYuhang Zhao <2546789017@qq.com>2020-05-11 21:49:28 +0800
committerYuhang Zhao <2546789017@qq.com>2020-05-11 23:36:27 +0000
commit2844631aa977fb1619ec3910090d1bdd4c7459c2 (patch)
tree6bcb1e78d8a650e9fab47601a6ebdb286ed3916e /src/corelib/Qt6CoreMacros.cmake
parent745fae0dc1fb762a2f2a961d52953ec43fa7773b (diff)
qmake: Remove the DISCARDABLE flag for icon resources
According to [1] the DISCARDABLE attribute is for 16-bit Windows, and it is ignored. We can drop it. [1] https://docs.microsoft.com/en-us/windows/win32/menurc/common-resource-attributes Change-Id: I70e5b0441a9d20f6c76c3d7a84947f8bce5c8fbd Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/corelib/Qt6CoreMacros.cmake')
-rw-r--r--src/corelib/Qt6CoreMacros.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake
index 7a98c01247..2aa6017a4c 100644
--- a/src/corelib/Qt6CoreMacros.cmake
+++ b/src/corelib/Qt6CoreMacros.cmake
@@ -925,7 +925,7 @@ function(qt6_generate_win32_rc_file target)
if (target_icons)
set(index 1)
foreach( icon IN LISTS target_icons)
- string(APPEND icons "IDI_ICON${index} ICON DISCARDABLE \"${icon}\"\n")
+ string(APPEND icons "IDI_ICON${index} ICON \"${icon}\"\n")
math(EXPR index "${index} +1")
endforeach()
endif()