Commit a22050dd authored by Željan Rikalo's avatar Željan Rikalo 🏊🏼
Browse files

Qt: fixed themed drawing of disabled combobox. issue #27381

git-svn-id: trunk@47578 -
parent d78c839b
......@@ -286,6 +286,17 @@ begin
opt := QStyleOptionComboBox_create();
if Element.Features = Ord(QtRightToLeft) then
QStyleOption_setDirection(opt, QtRightToLeft);
if Details.State in [CBXS_DISABLED] then
begin
APalette := QPalette_create();
try
QStyleOption_palette(opt, APalette);
QPalette_setCurrentColorGroup(APalette, QPaletteDisabled);
QStyleOption_setPalette(opt, APalette);
finally
QPalette_destroy(APalette);
end;
end;
end;
QStyleCC_SpinBox:
begin
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment