Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 5 files). Show all
Unified · Split
| @@ -179,6 +179,10 @@ QScriptValue WindowScriptingInterface::save(const QString& title, const QString& · 178 unmodified lines | |||
| 179 | return result.isEmpty() ? QScriptValue::NullValue : QScriptValue(result); | 179 | return result.isEmpty() ? QScriptValue::NullValue : QScriptValue(result); |
| 180 | } | 180 | } |
| 181 | 181 | ||
| 182 | void WindowScriptingInterface::showAssetServer(const QString& upload) { | ||
| 183 | QMetaObject::invokeMethod(qApp, "showAssetServerWidget", Qt::QueuedConnection, Q_ARG(QString, upload)); | ||
| 184 | } | ||
| 185 | |||
| 182 | int WindowScriptingInterface::getInnerWidth() { | 186 | int WindowScriptingInterface::getInnerWidth() { |
| 183 | return qApp->getWindow()->geometry().width(); | 187 | return qApp->getWindow()->geometry().width(); |
| 184 | } | 188 | } |