LCL: QT and QT5: Show controls disabled when Enabled = False. Regression from revision 58448 #9733fa84ab. Issue #34018 Patch by Zeljan Rikalo

git-svn-id: trunk@58735 -
This commit is contained in:
michl 2018-08-18 07:02:27 +00:00
parent 9a41d92215
commit 4a554390db
2 changed files with 12 additions and 0 deletions

View File

@ -2145,6 +2145,12 @@ begin
if Assigned(LCLObject) and FWidgetNeedFontColorInitialization then
setInitialFontColor(LCLObject);
if Assigned(LCLObject) then
QWidget_setEnabled(Widget, LCLObject.Enabled)
else
QWidget_setEnabled(Widget, (FParams.Style and WS_DISABLED) = 0);
if (FParams.Style and WS_VISIBLE) = 0 then
QWidget_hide(Widget)
else

View File

@ -2149,6 +2149,12 @@ begin
if Assigned(LCLObject) and FWidgetNeedFontColorInitialization then
setInitialFontColor(LCLObject);
if Assigned(LCLObject) then
QWidget_setEnabled(Widget, LCLObject.Enabled)
else
QWidget_setEnabled(Widget, (FParams.Style and WS_DISABLED) = 0);
if (FParams.Style and WS_VISIBLE) = 0 then
QWidget_hide(Widget)
else