mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 15:59:38 +02:00
Qt: follow Qt5 with WinIDNeeded function. part of #36897
git-svn-id: trunk@62950 -
This commit is contained in:
parent
8e1d2ca2e9
commit
45725b103e
@ -179,6 +179,7 @@ type
|
||||
procedure Release; override;
|
||||
procedure Destroyed; cdecl; override;
|
||||
public
|
||||
function WinIDNeeded: boolean; virtual;
|
||||
function CanAdjustClientRectOnResize: Boolean; virtual;
|
||||
function CanChangeFontColor: Boolean; virtual;
|
||||
function CanSendLCLMessage: Boolean;
|
||||
@ -704,6 +705,7 @@ type
|
||||
property IsFrameWindow: Boolean read FIsFrameWindow write FIsFrameWindow; {check if our LCLObject is TCustomFrame}
|
||||
property ShowOnTaskBar: Boolean read FShowOnTaskBar;
|
||||
public
|
||||
function WinIDNeeded: boolean; override;
|
||||
procedure AttachEvents; override;
|
||||
procedure DetachEvents; override;
|
||||
function CWEventFilter(Sender: QObjectH; Event: QEventH): Boolean; cdecl;
|
||||
@ -717,6 +719,7 @@ type
|
||||
protected
|
||||
function CreateWidget(const AParams: TCreateParams): QWidgetH; override;
|
||||
public
|
||||
function WinIDNeeded: boolean; override;
|
||||
procedure InitializeWidget; override;
|
||||
procedure DeInitializeWidget; override;
|
||||
function CanPaintBackground: Boolean; override;
|
||||
@ -2272,6 +2275,11 @@ begin
|
||||
Release;
|
||||
end;
|
||||
|
||||
function TQtWidget.WinIDNeeded: boolean;
|
||||
begin
|
||||
Result := False;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Function: TQtWidget.CanAdjustClientRectOnResize
|
||||
Params: None
|
||||
@ -8185,6 +8193,17 @@ begin
|
||||
UpdateParent;
|
||||
end;
|
||||
|
||||
function TQtMainWindow.WinIDNeeded: boolean;
|
||||
begin
|
||||
Result := False;
|
||||
{$IFDEF HASX11}
|
||||
if Assigned(LCLObject) and not IsFormDesign(LCLObject) and
|
||||
not IsMdiChild and (LCLObject.Parent = nil) and not testAttribute(QtWA_Mapped) and
|
||||
QWidget_isTopLevel(Widget) then
|
||||
Result := True;
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
procedure TQtMainWindow.AttachEvents;
|
||||
begin
|
||||
inherited AttachEvents;
|
||||
@ -18424,6 +18443,11 @@ begin
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
function TQtHintWindow.WinIDNeeded: boolean;
|
||||
begin
|
||||
Result := False;
|
||||
end;
|
||||
|
||||
procedure TQtHintWindow.InitializeWidget;
|
||||
begin
|
||||
inherited InitializeWidget;
|
||||
|
Loading…
Reference in New Issue
Block a user