Qt: bugfix - fixed child control selection/rubber paint inside TPanel during design time.

git-svn-id: trunk@16413 -
This commit is contained in:
zeljko 2008-09-04 16:53:11 +00:00
parent 90d81449be
commit 83c9d3ccd2

View File

@ -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);