mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
Support for Window.geometryChanged signal.
This commit is contained in:
parent
0b2f7beaed
commit
5eb7849a80
2 changed files with 5 additions and 0 deletions
|
@ -58,6 +58,8 @@ WindowScriptingInterface::WindowScriptingInterface() {
|
|||
OffscreenUi::warning("Import SVO Error", "You need to be running edit.js to import entities.");
|
||||
}
|
||||
});
|
||||
|
||||
connect(qApp->getWindow(), &MainWindow::windowGeometryChanged, this, &WindowScriptingInterface::geometryChanged);
|
||||
}
|
||||
|
||||
WindowScriptingInterface::~WindowScriptingInterface() {
|
||||
|
|
|
@ -76,6 +76,9 @@ signals:
|
|||
|
||||
void messageBoxClosed(int id, int button);
|
||||
|
||||
// triggered when window size or position changes
|
||||
void geometryChanged(QRect geometry);
|
||||
|
||||
private:
|
||||
QString getPreviousBrowseLocation() const;
|
||||
void setPreviousBrowseLocation(const QString& location);
|
||||
|
|
Loading…
Reference in a new issue