#include <QtQuick/qquickitem.h>
#include <QtQuick/qquickview.h>
+#include <private/qabstractanimation_p.h>
+
#ifdef QT_WIDGETS_LIB
#include <QtWidgets/QApplication>
#include <QtWidgets/QFileDialog>
, fullscreen(false)
, clip(false)
, versionDetection(true)
+ , slowAnimations(false)
{
}
bool scenegraphOnGraphicsview;
bool clip;
bool versionDetection;
+ bool slowAnimations;
};
#if defined(QMLSCENE_BUNDLE)
qWarning(" --fullscreen .............................. run fullscreen");
qWarning(" --no-multisample .......................... Disable multisampling (anti-aliasing)");
qWarning(" --no-version-detection .................... Do not try to detect the version of the .qml file");
+ qWarning(" --slow-animations ......................... Run all animations in slow motion");
qWarning(" ");
exit(1);
options.clip = true;
else if (lowerArgument == QLatin1String("--no-version-detection"))
options.versionDetection = false;
+ else if (lowerArgument == QLatin1String("--slow-animations"))
+ options.slowAnimations = true;
else if (lowerArgument == QLatin1String("-i") && i + 1 < argc)
imports.append(QString::fromLatin1(argv[++i]));
else if (lowerArgument == QLatin1String("--help")
app.setOrganizationName("Nokia");
app.setOrganizationDomain("nokia.com");
+ QUnifiedTimer::instance()->setSlowModeEnabled(options.slowAnimations);
+
if (options.file.isEmpty())
#if defined(QMLSCENE_BUNDLE)
displayOptionsDialog(&options);