mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 04:46:45 +02:00
Qt: create toplevels immediatelly on X11. fixes #16550
git-svn-id: trunk@25641 -
This commit is contained in:
parent
06044d71ad
commit
cda968f496
@ -144,12 +144,14 @@ begin
|
||||
{$endif}
|
||||
|
||||
// Creates the window
|
||||
|
||||
{$IFDEF HASX11}
|
||||
QCoreApplication_setAttribute(QtAA_ImmediateWidgetCreation, True);
|
||||
{$ENDIF}
|
||||
if csDesigning in AWinControl.ComponentState then
|
||||
QtMainWindow := TQtDesignWidget.Create(AWinControl, AParams)
|
||||
else
|
||||
QtMainWindow := TQtMainWindow.Create(AWinControl, AParams);
|
||||
|
||||
|
||||
// Set´s initial properties
|
||||
QtMainWindow.QtFormBorderStyle := Ord(TCustomForm(AWinControl).BorderStyle);
|
||||
QtMainWindow.QtFormStyle := Ord(TCustomForm(AWinControl).FormStyle);
|
||||
@ -184,6 +186,10 @@ begin
|
||||
QtMainWindow.setPopupParent(TCustomForm(AWinControl).PopupMode, PopupParent);
|
||||
end;
|
||||
|
||||
{$IFDEF HASX11}
|
||||
QCoreApplication_setAttribute(QtAA_ImmediateWidgetCreation, False);
|
||||
{$ENDIF}
|
||||
|
||||
// Sets Various Events
|
||||
QtMainWindow.AttachEvents;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user