forked from qt-creator/qt-creator
QmlDesigner: Remove the standalone view3D window implementation
Task-number: QDS-1692 Change-Id: I6c04aaee9ab6a119cfcc22ee2e19b808bb95ae0a Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
committed by
Miikka Heikkinen
parent
5b8fe22337
commit
fb843d3442
@@ -197,31 +197,6 @@ MainWindow::MainWindow()
|
||||
this, &MainWindow::openDroppedFiles);
|
||||
}
|
||||
|
||||
// Edit View 3D needs to know when the main window's state or activation change
|
||||
void MainWindow::changeEvent(QEvent *event)
|
||||
{
|
||||
if (event->type() == QEvent::WindowStateChange) {
|
||||
emit m_coreImpl->windowStateChanged(m_previousWindowStates, windowState());
|
||||
m_previousWindowStates = windowState();
|
||||
} else if (event->type() == QEvent::ActivationChange) {
|
||||
// check the last 3 children for a possible active window
|
||||
auto rIter = children().rbegin();
|
||||
bool hasPopup = false;
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
if (rIter < children().rend()) {
|
||||
auto child = qobject_cast<QWidget *>(*(rIter++));
|
||||
if (child && child->isActiveWindow()) {
|
||||
hasPopup = true;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
emit m_coreImpl->windowActivationChanged(isActiveWindow(), hasPopup);
|
||||
}
|
||||
}
|
||||
|
||||
NavigationWidget *MainWindow::navigationWidget(Side side) const
|
||||
{
|
||||
return side == Side::Left ? m_leftNavigationWidget : m_rightNavigationWidget;
|
||||
|
||||
Reference in New Issue
Block a user