History

Added option to select snapshot filename in scripts.

NissimHadar committed 8 years ago

Commit cf870521 parent b658d4a6 files · +30 −20Browse files

Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 6 files). Show all

Unified · Split

interface/src/scripting/WindowScriptingInterface.cpp+4−4
@@ -430,12 +430,12 @@ bool WindowScriptingInterface::setDisplayTexture(const QString& name) { · 429 unmodified lines
430 return qApp->getActiveDisplayPlugin()->setDisplayTexture(name); // Plugins that don't know how, answer false.430 return qApp->getActiveDisplayPlugin()->setDisplayTexture(name); // Plugins that don't know how, answer false.
431}431}
432 432
433void WindowScriptingInterface::takeSnapshot(bool notify, bool includeAnimated, float aspectRatio) {433void WindowScriptingInterface::takeSnapshot(bool notify, bool includeAnimated, float aspectRatio, const QString& filename) {
434 qApp->takeSnapshot(notify, includeAnimated, aspectRatio);434 qApp->takeSnapshot(notify, includeAnimated, aspectRatio, filename);
435}435}
436 436
437void WindowScriptingInterface::takeSecondaryCameraSnapshot() {437void WindowScriptingInterface::takeSecondaryCameraSnapshot(const QString& filename) {
438 qApp->takeSecondaryCameraSnapshot();438 qApp->takeSecondaryCameraSnapshot(filename);
439}439}
440 440
441void WindowScriptingInterface::shareSnapshot(const QString& path, const QUrl& href) {441void WindowScriptingInterface::shareSnapshot(const QString& path, const QUrl& href) {