forked from qt-creator/qt-creator
QmlJSDebugger: Separated animation speed and paused state
This separates animation speed and paused state in the communication protocol between the Qt Creator QmlJSInspector plugin and the QmlJSDebugger server. Point is to allow changing the speed of the animation before resuming execution. These two things were already separated in the QML Observer, but not in Qt Creator. Reviewed-by: Kai Koehne
This commit is contained in:
@@ -86,6 +86,8 @@ void ClientProxy::connectToServer()
|
||||
SIGNAL(selectMarqueeToolActivated()));
|
||||
connect(m_observerClient, SIGNAL(animationSpeedChanged(qreal)),
|
||||
SIGNAL(animationSpeedChanged(qreal)));
|
||||
connect(m_observerClient, SIGNAL(executionPausedChanged(bool)),
|
||||
SIGNAL(executionPausedChanged(bool)));
|
||||
connect(m_observerClient, SIGNAL(designModeBehaviorChanged(bool)),
|
||||
SIGNAL(designModeBehaviorChanged(bool)));
|
||||
connect(m_observerClient, SIGNAL(showAppOnTopChanged(bool)),
|
||||
@@ -545,10 +547,16 @@ void ClientProxy::setDesignModeBehavior(bool inDesignMode)
|
||||
m_observerClient->setDesignModeBehavior(inDesignMode);
|
||||
}
|
||||
|
||||
void ClientProxy::setAnimationSpeed(qreal slowdownFactor)
|
||||
void ClientProxy::setAnimationSpeed(qreal slowDownFactor)
|
||||
{
|
||||
if (isConnected())
|
||||
m_observerClient->setAnimationSpeed(slowdownFactor);
|
||||
m_observerClient->setAnimationSpeed(slowDownFactor);
|
||||
}
|
||||
|
||||
void ClientProxy::setExecutionPaused(bool paused)
|
||||
{
|
||||
if (isConnected())
|
||||
m_observerClient->setExecutionPaused(paused);
|
||||
}
|
||||
|
||||
void ClientProxy::changeToColorPickerTool()
|
||||
|
||||
Reference in New Issue
Block a user