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>
This commit is contained in:
parent
745fae0dc1
commit
2844631aa9
@ -366,7 +366,7 @@ void Win32MakefileGenerator::processRcFileVar()
|
||||
ts << Qt::endl;
|
||||
if (!rcIcons.isEmpty()) {
|
||||
for (int i = 0; i < rcIcons.size(); ++i)
|
||||
ts << QString("IDI_ICON%1\tICON\tDISCARDABLE\t%2").arg(i + 1).arg(cQuoted(rcIcons[i])) << Qt::endl;
|
||||
ts << QString("IDI_ICON%1\tICON\t%2").arg(i + 1).arg(cQuoted(rcIcons[i])) << Qt::endl;
|
||||
ts << Qt::endl;
|
||||
}
|
||||
if (!manifestFile.isEmpty()) {
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user