Showing the changes to interface/src/ui/InteractiveWindow.cpp (1 of 4 files). Show all
Unified · Split
| @@ -109,6 +109,10 @@ void InteractiveWindow::forwardKeyReleaseEvent(int key, int modifiers) { · 108 unmodified lines | ||
| 109 | 109 | QCoreApplication::postEvent(QCoreApplication::instance(), event); |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | +void InteractiveWindow::emitMainWindowResizeEvent() { | |
| 113 | + emit qApp->getWindow()->windowGeometryChanged(qApp->getWindow()->geometry()); | |
| 114 | +} | |
| 115 | + | |
| 112 | 116 | /**jsdoc |
| 113 | 117 | * A set of properties used when creating an <code>InteractiveWindow</code>. |
| 114 | 118 | * @typedef {object} InteractiveWindow.Properties |
| @@ -215,10 +219,11 @@ InteractiveWindow::InteractiveWindow(const QString& sourceUrl, const QVariantMap · 100 unmodified lines | ||
| 215 | 219 | Qt::QueuedConnection); |
| 216 | 220 | QObject::connect(rootItem, SIGNAL(keyReleaseEvent(int, int)), this, SLOT(forwardKeyReleaseEvent(int, int)), |
| 217 | 221 | Qt::QueuedConnection); |
| 218 | − emit mainWindow->windowGeometryChanged(qApp->getWindow()->geometry()); | |
| 219 | 222 | } |
| 220 | 223 | }); |
| 221 | 224 | |
| 225 | + QObject::connect(_dockWidget.get(), SIGNAL(onResizeEvent()), this, SLOT(emitMainWindowResizeEvent())); | |
| 226 | + | |
| 222 | 227 | _dockWidget->setSource(QUrl(sourceUrl)); |
| 223 | 228 | mainWindow->addDockWidget(dockArea, _dockWidget.get()); |
| 224 | 229 | } else { |