forked from qt-creator/qt-creator
QML JS Inspector: Added method to clear component cache
This one should be called when a component is changed and components using it need to be reloaded.
This commit is contained in:
@@ -180,6 +180,18 @@ void QmlJSDesignDebugClient::setContextPathIndex(int contextPathIndex)
|
||||
sendMessage(message);
|
||||
}
|
||||
|
||||
void QmlJSDesignDebugClient::clearComponentCache()
|
||||
{
|
||||
if (!m_connection || !m_connection->isConnected())
|
||||
return;
|
||||
|
||||
QByteArray message;
|
||||
QDataStream ds(&message, QIODevice::WriteOnly);
|
||||
|
||||
ds << QByteArray("CLEAR_COMPONENT_CACHE");
|
||||
sendMessage(message);
|
||||
}
|
||||
|
||||
void QmlJSDesignDebugClient::reloadViewer()
|
||||
{
|
||||
if (!m_connection || !m_connection->isConnected())
|
||||
|
||||
Reference in New Issue
Block a user