History

Initial progressgit add -A!

Zach Fox committed 10 years ago

Commit 704476c1 parent c81b0fc6 files · +869 −9Browse files

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

Unified · Split

interface/src/scripting/WindowScriptingInterface.cpp+6−2
@@ -199,8 +199,12 @@ void WindowScriptingInterface::copyToClipboard(const QString& text) { · 198 unmodified lines
199199 QApplication::clipboard()->setText(text);
200200 }
201201
202−void WindowScriptingInterface::takeSnapshot(bool notify, float aspectRatio) {
203− qApp->takeSnapshot(notify, aspectRatio);
202+void WindowScriptingInterface::takeSnapshotStill(bool notify, float aspectRatio) {
203+ qApp->takeSnapshot(notify, "still", aspectRatio);
204+}
205+
206+void WindowScriptingInterface::takeSnapshotAnimated(bool notify, float aspectRatio) {
207+ qApp->takeSnapshot(notify, "animated", aspectRatio);
204208 }
205209
206210 void WindowScriptingInterface::shareSnapshot(const QString& path) {