From 03a314883fddaec77728f11cebf75275531766ce Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 22 Oct 2009 03:59:07 +0000 Subject: [PATCH] support pause svn path=/trunk/KDE/kdebase/runtime/; revision=1038846 --- scriptengines/javascript/simplejavascriptapplet.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scriptengines/javascript/simplejavascriptapplet.cpp b/scriptengines/javascript/simplejavascriptapplet.cpp index 2ed8d5b98..ba4b44d58 100644 --- a/scriptengines/javascript/simplejavascriptapplet.cpp +++ b/scriptengines/javascript/simplejavascriptapplet.cpp @@ -326,6 +326,7 @@ void SimpleJavaScriptApplet::populateAnimationsHash() s_animationDefs.insert("fade", Plasma::Animator::FadeAnimation); s_animationDefs.insert("grow", Plasma::Animator::GrowAnimation); s_animationDefs.insert("expand", Plasma::Animator::ExpandAnimation); + s_animationDefs.insert("pause", Plasma::Animator::PauseAnimation); s_animationDefs.insert("pulse", Plasma::Animator::PulseAnimation); s_animationDefs.insert("rotate", Plasma::Animator::RotationAnimation); s_animationDefs.insert("rotateStacked", Plasma::Animator::RotationStackedAnimation); @@ -536,6 +537,7 @@ QScriptValue SimpleJavaScriptApplet::service(QScriptContext *context, QScriptEng return engine->newQObject(service); } +#include QScriptValue SimpleJavaScriptApplet::animation(QScriptContext *context, QScriptEngine *engine) { if (context->argumentCount() != 1) {