Showing the changes to interface/src/ui/InteractiveWindow.cpp (1 of 2 files). Show all
Unified · Split
| @@ -92,6 +92,8 @@ InteractiveWindow::InteractiveWindow(const QString& sourceUrl, const QVariantMap · 91 unmodified lines | ||
| 92 | 92 | |
| 93 | 93 | auto mainWindow = qApp->getWindow(); |
| 94 | 94 | _dockWidget = std::shared_ptr<DockWidget>(new DockWidget(title, mainWindow), dockWidgetDeleter); |
| 95 | + auto quickView = _dockWidget->getQuickView(); | |
| 96 | + Application::setupQmlSurface(quickView->rootContext(), true); | |
| 95 | 97 | |
| 96 | 98 | if (nativeWindowInfo.contains(DOCK_AREA_PROPERTY)) { |
| 97 | 99 | DockArea dockedArea = (DockArea) nativeWindowInfo[DOCK_AREA_PROPERTY].toInt(); |
| @@ -119,7 +121,6 @@ InteractiveWindow::InteractiveWindow(const QString& sourceUrl, const QVariantMap · 21 unmodified lines | ||
| 119 | 121 | } |
| 120 | 122 | } |
| 121 | 123 | |
| 122 | − auto quickView = _dockWidget->getQuickView(); | |
| 123 | 124 | QObject::connect(quickView.get(), &QQuickView::statusChanged, [&, this] (QQuickView::Status status) { |
| 124 | 125 | if (status == QQuickView::Ready) { |
| 125 | 126 | QQuickItem* rootItem = _dockWidget->getRootItem(); |