mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 12:20:38 +02:00
Qt: fixed wrong states of themed checkboxes.Patch by Gabor Boros. issue #26586
git-svn-id: trunk@46198 -
This commit is contained in:
parent
7f71751dd9
commit
76de5178a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user