mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-25 18:17:48 +01:00
Qt: bugfix - fixed child control selection/rubber paint inside TPanel during design time.
git-svn-id: trunk@16413 -
This commit is contained in:
parent
90d81449be
commit
83c9d3ccd2
@ -156,6 +156,7 @@ type
|
||||
procedure ShowMinimized;
|
||||
procedure ShowMaximized;
|
||||
function getActionByIndex(AIndex: Integer): QActionH;
|
||||
function getAutoFillBackground: Boolean;
|
||||
function getClientBounds: TRect; virtual;
|
||||
function getClientOffset: TPoint; virtual;
|
||||
function getEnabled: Boolean;
|
||||
@ -1361,6 +1362,11 @@ begin
|
||||
setAttribute(QtWA_NoMousePropagation, True);
|
||||
end;
|
||||
|
||||
if (csDesigning in LCLObject.ComponentState) and not
|
||||
(Self is TQtMainWindow) and not
|
||||
getAutoFillBackground then
|
||||
setAutoFillBackground(False);
|
||||
|
||||
// Set mouse move messages policy
|
||||
QWidget_setMouseTracking(Widget, True);
|
||||
end;
|
||||
@ -2658,6 +2664,11 @@ begin
|
||||
Result := nil;
|
||||
end;
|
||||
|
||||
function TQtWidget.getAutoFillBackground: Boolean;
|
||||
begin
|
||||
Result := QWidget_autoFillBackground(Widget);
|
||||
end;
|
||||
|
||||
function TQtWidget.getEnabled: Boolean;
|
||||
begin
|
||||
Result := QWidget_isEnabled(Widget);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user