mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 15:32:35 +02:00
Qt: workaround for qt bug with mdichild activation after changes in r46623 #7633a0c2ba.
git-svn-id: trunk@46629 -
This commit is contained in:
parent
a0642273b5
commit
a3e431c414
@ -6853,6 +6853,23 @@ begin
|
||||
BeginEventProcessing;
|
||||
try
|
||||
case QEvent_type(Event) of
|
||||
QEventHide:
|
||||
begin
|
||||
Result := inherited EventFilter(Sender, Event);
|
||||
{as of r46623 (issue #26893) we use QObject_deleteLater
|
||||
instead of QWidget_destroy.
|
||||
QMDIArea does not respond after that, so we must activate next mdichild
|
||||
according to mdi standards.Looks like Qt4 bug.}
|
||||
if not Application.Terminated and IsMDIChild then
|
||||
begin
|
||||
if Assigned(MDIChildArea) then
|
||||
begin
|
||||
if (MDIChildArea.ActiveSubWindow = nil) or
|
||||
(MDIChildArea.ActiveSubWindow = Widget) then
|
||||
QMdiArea_activatePreviousSubWindow(QMDIAreaH(MDIChildArea.Widget));
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
QEventMouseButtonPress,
|
||||
QEventMouseButtonRelease,
|
||||
QEventMouseButtonDblClick:
|
||||
|
Loading…
Reference in New Issue
Block a user