mirror of
https://github.com/leozide/leocad
synced 2025-02-05 08:45:55 +01:00
Update focus view correctly.
This commit is contained in:
parent
348b83155e
commit
6c6c5c8f6d
1 changed files with 1 additions and 7 deletions
|
@ -72,7 +72,6 @@ void lcModelTabWidget::ResetLayout()
|
||||||
TopWidget->deleteLater();
|
TopWidget->deleteLater();
|
||||||
|
|
||||||
Widget->setFocus();
|
Widget->setFocus();
|
||||||
SetActiveView((View*)((lcQGLWidget*)Widget)->GetView());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcModelTabWidget::Clear()
|
void lcModelTabWidget::Clear()
|
||||||
|
@ -1543,10 +1542,7 @@ void lcMainWindow::RestoreTabLayout(const QByteArray& TabLayout)
|
||||||
LoadWidget(TabWidget ? TabWidget->layout()->itemAt(0)->widget() : nullptr);
|
LoadWidget(TabWidget ? TabWidget->layout()->itemAt(0)->widget() : nullptr);
|
||||||
|
|
||||||
if (ActiveWidget && TabWidget)
|
if (ActiveWidget && TabWidget)
|
||||||
{
|
ActiveWidget->setFocus();
|
||||||
View* ActiveView = (View*)((lcQGLWidget*)ActiveWidget)->GetView();
|
|
||||||
TabWidget->SetActiveView(ActiveView);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ModelAdded)
|
if (!ModelAdded)
|
||||||
|
@ -1630,7 +1626,6 @@ void lcMainWindow::SetCurrentModelTab(lcModel* Model)
|
||||||
ViewWidget->show();
|
ViewWidget->show();
|
||||||
ViewWidget->setFocus();
|
ViewWidget->setFocus();
|
||||||
NewView->ZoomExtents();
|
NewView->ZoomExtents();
|
||||||
SetActiveView(NewView);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcMainWindow::ResetCameras()
|
void lcMainWindow::ResetCameras()
|
||||||
|
@ -1897,7 +1892,6 @@ void lcMainWindow::RemoveActiveView()
|
||||||
}
|
}
|
||||||
|
|
||||||
OtherWidget->setFocus();
|
OtherWidget->setFocus();
|
||||||
SetActiveView((View*)((lcQGLWidget*)OtherWidget)->GetView());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcMainWindow::ResetViews()
|
void lcMainWindow::ResetViews()
|
||||||
|
|
Loading…
Add table
Reference in a new issue