mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
Qt,Qt5: fixed design time bug on TPageControl. issue #36939
git-svn-id: trunk@63035 -
This commit is contained in:
parent
6c936074db
commit
b2bd6716d6
@ -11083,7 +11083,7 @@ end;
|
||||
procedure TQtTabWidget.setCurrentWidget(APage: TQtWidget; const AIsMoved: Boolean);
|
||||
begin
|
||||
QTabWidget_setCurrentWidget(QTabWidgetH(Widget), APage.Widget);
|
||||
if AisMoved then
|
||||
if AIsMoved and (Assigned(LCLObject) and not (csDesigning in LCLObject.ComponentState)) then
|
||||
APage.setFocus;
|
||||
end;
|
||||
|
||||
@ -18594,7 +18594,8 @@ begin
|
||||
exit;
|
||||
end;
|
||||
end else
|
||||
if (QEvent_type(Event) = QEventShow) then
|
||||
if (QEvent_type(Event) = QEventShow) and Assigned(LCLObject) and
|
||||
not (csDesigning in LCLObject.ComponentState) then
|
||||
begin
|
||||
if Assigned(DragManager) and DragManager.IsDragging then
|
||||
ACapture := GetCapture
|
||||
|
@ -11107,7 +11107,7 @@ end;
|
||||
procedure TQtTabWidget.setCurrentWidget(APage: TQtWidget; const AIsMoved: Boolean);
|
||||
begin
|
||||
QTabWidget_setCurrentWidget(QTabWidgetH(Widget), APage.Widget);
|
||||
if AisMoved then
|
||||
if AIsMoved and (Assigned(LCLObject) and not (csDesigning in LCLObject.ComponentState)) then
|
||||
APage.setFocus;
|
||||
end;
|
||||
|
||||
@ -18620,7 +18620,8 @@ begin
|
||||
exit;
|
||||
end;
|
||||
end else
|
||||
if (QEvent_type(Event) = QEventShow) then
|
||||
if (QEvent_type(Event) = QEventShow) and Assigned(LCLObject) and
|
||||
not (csDesigning in LCLObject.ComponentState) then
|
||||
begin
|
||||
if Assigned(DragManager) and DragManager.IsDragging then
|
||||
ACapture := GetCapture
|
||||
|
Loading…
Reference in New Issue
Block a user