mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 16:39:19 +02:00
Qt: beginUpdate & endUpdate for scrollarea too.
git-svn-id: trunk@62946 -
This commit is contained in:
parent
20ca27b476
commit
b58a1edfb6
@ -660,6 +660,10 @@ type
|
|||||||
ScrollArea: TQtWindowArea;
|
ScrollArea: TQtWindowArea;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
|
|
||||||
|
procedure BeginUpdate; override;
|
||||||
|
procedure EndUpdate; override;
|
||||||
|
|
||||||
procedure Activate; override;
|
procedure Activate; override;
|
||||||
function CanAdjustClientRectOnResize: Boolean; override;
|
function CanAdjustClientRectOnResize: Boolean; override;
|
||||||
function getAcceptDropFiles: Boolean; override;
|
function getAcceptDropFiles: Boolean; override;
|
||||||
@ -4347,8 +4351,8 @@ begin
|
|||||||
InResizeEvent := True;
|
InResizeEvent := True;
|
||||||
try
|
try
|
||||||
// do not loop with LCL but do not apply it to TQtMainWindow !
|
// do not loop with LCL but do not apply it to TQtMainWindow !
|
||||||
if not (csDesigning in LCLObject.ComponentState) then
|
if not (csDesigning in LCLObject.ComponentState) and
|
||||||
if not (ClassType = TQtMainWindow) and InUpdate then
|
not ((ClassType = TQtMainWindow) or (ClassType = TQtWindowArea)) and InUpdate then
|
||||||
begin
|
begin
|
||||||
AQtClientRect := Rect(0, 0, 0, 0);
|
AQtClientRect := Rect(0, 0, 0, 0);
|
||||||
if FOwner <> nil then
|
if FOwner <> nil then
|
||||||
@ -7164,6 +7168,20 @@ begin
|
|||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TQtMainWindow.BeginUpdate;
|
||||||
|
begin
|
||||||
|
inherited BeginUpdate;
|
||||||
|
if Assigned(ScrollArea) then
|
||||||
|
ScrollArea.BeginUpdate;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TQtMainWindow.EndUpdate;
|
||||||
|
begin
|
||||||
|
if Assigned(ScrollArea) then
|
||||||
|
ScrollArea.EndUpdate;
|
||||||
|
inherited EndUpdate;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TQtMainWindow.Activate;
|
procedure TQtMainWindow.Activate;
|
||||||
begin
|
begin
|
||||||
if IsMDIChild then
|
if IsMDIChild then
|
||||||
|
Loading…
Reference in New Issue
Block a user