mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-26 00:01:33 +02:00
Small bug fix on Qt interface
git-svn-id: trunk@11363 -
This commit is contained in:
parent
f50d168011
commit
5202b04808
@ -2040,9 +2040,17 @@ begin
|
|||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{------------------------------------------------------------------------------
|
||||||
|
Function: TQtMainWindow.GetContainerWidget
|
||||||
|
Params: None
|
||||||
|
Returns: Nothing
|
||||||
|
|
||||||
|
The main window has a special container widget to handle the size of the menu
|
||||||
|
------------------------------------------------------------------------------}
|
||||||
function TQtMainWindow.GetContainerWidget: QWidgetH;
|
function TQtMainWindow.GetContainerWidget: QWidgetH;
|
||||||
begin
|
begin
|
||||||
Result := CentralWidget;
|
if CentralWidget <> nil then Result := CentralWidget
|
||||||
|
else Result := Widget;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user