mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
Limit maximum small icon size to 21 pixel (standard icon size for Lingvo dictionaries) (issue #441)
This commit is contained in:
parent
04524ba4e4
commit
c8f65dea3b
|
@ -33,6 +33,12 @@ int GdAppStyle::pixelMetric ( PixelMetric metric, const QStyleOption * option, c
|
|||
}
|
||||
}
|
||||
|
||||
// Qt don't upscale icons for high dpi scales
|
||||
// We limit maximum small icon size to 21 pixel
|
||||
// (standard icon size for Lingvo dictionaries)
|
||||
if( metric == QStyle::PM_SmallIconSize )
|
||||
return defaultVal < 21 ? defaultVal : 21;
|
||||
|
||||
return defaultVal;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue