Support for Window.geometryChanged signal.

This commit is contained in:
Anthony J. Thibault 2017-01-25 16:40:24 -08:00
parent 0b2f7beaed
commit 5eb7849a80
2 changed files with 5 additions and 0 deletions

View file

@ -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() {

View file

@ -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);