mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-26 10:07:45 +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 ShowMinimized;
|
||||||
procedure ShowMaximized;
|
procedure ShowMaximized;
|
||||||
function getActionByIndex(AIndex: Integer): QActionH;
|
function getActionByIndex(AIndex: Integer): QActionH;
|
||||||
|
function getAutoFillBackground: Boolean;
|
||||||
function getClientBounds: TRect; virtual;
|
function getClientBounds: TRect; virtual;
|
||||||
function getClientOffset: TPoint; virtual;
|
function getClientOffset: TPoint; virtual;
|
||||||
function getEnabled: Boolean;
|
function getEnabled: Boolean;
|
||||||
@ -1361,6 +1362,11 @@ begin
|
|||||||
setAttribute(QtWA_NoMousePropagation, True);
|
setAttribute(QtWA_NoMousePropagation, True);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
if (csDesigning in LCLObject.ComponentState) and not
|
||||||
|
(Self is TQtMainWindow) and not
|
||||||
|
getAutoFillBackground then
|
||||||
|
setAutoFillBackground(False);
|
||||||
|
|
||||||
// Set mouse move messages policy
|
// Set mouse move messages policy
|
||||||
QWidget_setMouseTracking(Widget, True);
|
QWidget_setMouseTracking(Widget, True);
|
||||||
end;
|
end;
|
||||||
@ -2658,6 +2664,11 @@ begin
|
|||||||
Result := nil;
|
Result := nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TQtWidget.getAutoFillBackground: Boolean;
|
||||||
|
begin
|
||||||
|
Result := QWidget_autoFillBackground(Widget);
|
||||||
|
end;
|
||||||
|
|
||||||
function TQtWidget.getEnabled: Boolean;
|
function TQtWidget.getEnabled: Boolean;
|
||||||
begin
|
begin
|
||||||
Result := QWidget_isEnabled(Widget);
|
Result := QWidget_isEnabled(Widget);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user