mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 19:29:31 +02:00
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:
parent
9a41d92215
commit
4a554390db
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user