Qt: fixed wrong states of themed checkboxes.Patch by Gabor Boros. issue #26586

git-svn-id: trunk@46198 -
This commit is contained in:
zeljko 2014-09-12 06:56:54 +00:00
parent 7f71751dd9
commit 76de5178a1

View File

@ -206,8 +206,8 @@ begin
QStyleOptionButton_setFeatures(QStyleOptionButtonH(opt), Features);
// workaround for qt QStyle bug. QStyle does not set disable flag (palette).
// see issue #24413
if Details.State in [TS_DISABLED] then
// see issue #24413,#26586
if Details.State in [CBS_UNCHECKEDDISABLED,CBS_CHECKEDDISABLED,CBS_MIXEDDISABLED] then
begin
APalette := QPalette_create();
try