mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 13:53:38 +02:00
Merge pull request #5668 from ctrlaltdavid/20648
Auto refresh entities list upon display of Entities tab
This commit is contained in:
commit
4dadfb8ea6
3 changed files with 8 additions and 0 deletions
|
@ -83,5 +83,11 @@ EntityListTool = function(opts) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
webView.visibilityChanged.connect(function (visible) {
|
||||||
|
if (visible) {
|
||||||
|
that.sendUpdate();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
};
|
};
|
||||||
|
|
|
@ -45,6 +45,7 @@ WebWindowClass::WebWindowClass(const QString& title, const QString& url, int wid
|
||||||
|
|
||||||
auto dockWidget = new QDockWidget(title, toolWindow);
|
auto dockWidget = new QDockWidget(title, toolWindow);
|
||||||
dockWidget->setFeatures(QDockWidget::DockWidgetMovable);
|
dockWidget->setFeatures(QDockWidget::DockWidgetMovable);
|
||||||
|
connect(dockWidget, &QDockWidget::visibilityChanged, this, &WebWindowClass::visibilityChanged);
|
||||||
|
|
||||||
_webView = new QWebView(dockWidget);
|
_webView = new QWebView(dockWidget);
|
||||||
addEventBridgeToWindowObject();
|
addEventBridgeToWindowObject();
|
||||||
|
|
|
@ -60,6 +60,7 @@ public slots:
|
||||||
void setTitle(const QString& title);
|
void setTitle(const QString& title);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
void visibilityChanged(bool visible); // Tool window
|
||||||
void moved(glm::vec2 position);
|
void moved(glm::vec2 position);
|
||||||
void resized(QSizeF size);
|
void resized(QSizeF size);
|
||||||
void closed();
|
void closed();
|
||||||
|
|
Loading…
Reference in a new issue