forked from qt-creator/qt-creator
added mode buttons to custom qml viewer and qmljsinspector toolbar
This commit is contained in:
committed by
Olivier Goffart
parent
c53a0337b6
commit
2f8dc2833b
@@ -77,8 +77,9 @@ bool ClientProxy::connectToViewer(const QString &host, quint16 port)
|
||||
disconnect(m_designClient,
|
||||
SIGNAL(selectMarqueeToolActivated()), this, SIGNAL(selectMarqueeToolActivated()));
|
||||
disconnect(m_designClient,
|
||||
|
||||
SIGNAL(animationSpeedChanged(qreal)), this, SIGNAL(animationSpeedChanged(qreal)));
|
||||
disconnect(m_designClient,
|
||||
SIGNAL(designModeBehaviorChanged(bool)), this, SIGNAL(designModeBehaviorChanged(bool)));
|
||||
|
||||
emit aboutToDisconnect();
|
||||
|
||||
@@ -173,7 +174,8 @@ void ClientProxy::connectionStateChanged()
|
||||
SIGNAL(selectMarqueeToolActivated()), SIGNAL(selectMarqueeToolActivated()));
|
||||
connect(m_designClient,
|
||||
SIGNAL(animationSpeedChanged(qreal)), SIGNAL(animationSpeedChanged(qreal)));
|
||||
|
||||
connect(m_designClient,
|
||||
SIGNAL(designModeBehaviorChanged(bool)), SIGNAL(designModeBehaviorChanged(bool)));
|
||||
}
|
||||
|
||||
(void) new DebuggerClient(m_conn);
|
||||
@@ -333,6 +335,12 @@ void ClientProxy::reloadQmlViewer()
|
||||
m_designClient->reloadViewer();
|
||||
}
|
||||
|
||||
void ClientProxy::setDesignModeBehavior(bool inDesignMode)
|
||||
{
|
||||
if (m_designClient && m_conn->isConnected())
|
||||
m_designClient->setDesignModeBehavior(inDesignMode);
|
||||
}
|
||||
|
||||
void ClientProxy::setAnimationSpeed(qreal slowdownFactor)
|
||||
{
|
||||
if (m_designClient && m_conn->isConnected())
|
||||
|
||||
Reference in New Issue
Block a user