mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:39:36 +02:00
Merged revision(s) 48875 #2f05933d7f, 48879 #02fecee255 from trunk:
Qt: fixed regression with focus of controls on mdichild forms. issue #27982 ........ Qt: do not assume that parent of TQtPage is TQtTabWidget. ........ git-svn-id: branches/fixes_1_4@48906 -
This commit is contained in:
parent
83923daf14
commit
1329963926
@ -1009,10 +1009,11 @@ begin
|
||||
OldWidget := nil
|
||||
else
|
||||
OldWidget := GetFirstQtObjectFromWidgetH(aold);
|
||||
if (ANew <> nil) and not QWidget_isVisible(ANew) then
|
||||
NewWidget := nil
|
||||
|
||||
if (ANew <> nil) then
|
||||
NewWidget := GetFirstQtObjectFromWidgetH(anew)
|
||||
else
|
||||
NewWidget := GetFirstQtObjectFromWidgetH(anew);
|
||||
NewWidget := nil;
|
||||
|
||||
if OldWidget = NewWidget then
|
||||
begin
|
||||
|
@ -69,8 +69,8 @@ begin
|
||||
if not Assigned(APage.Parent) or not APage.Parent.HandleAllocated then
|
||||
exit;
|
||||
AParent := TQtWidget(APage.Parent.Handle);
|
||||
if AParent.ChildOfComplexWidget = ccwTTabControl then
|
||||
exit;
|
||||
if not (AParent is TQtTabWidget) then
|
||||
exit;
|
||||
ATabWidget := TQtTabWidget(AParent);
|
||||
|
||||
AColor.Alpha := 0;
|
||||
|
Loading…
Reference in New Issue
Block a user