forked from qt-creator/qt-creator
QmlDesigner: Inspect components for existing states
For each created items we retrieve a list of the names of all existing states. Task-number: QDS-1978 Change-Id: I8e85e439fce3c6204cb8bcf69f6be847cc8dae5c Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -661,6 +661,14 @@ QList<ServerNodeInstance> ServerNodeInstance::stateInstances() const
|
||||
return m_nodeInstance->stateInstances();
|
||||
}
|
||||
|
||||
QStringList ServerNodeInstance::allStates() const
|
||||
{
|
||||
if (isValid())
|
||||
return m_nodeInstance->allStates();
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
Internal::ObjectNodeInstance::Pointer ServerNodeInstance::internalInstance() const
|
||||
{
|
||||
return m_nodeInstance;
|
||||
|
||||
Reference in New Issue
Block a user