Commit c82613ef authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer

QString is empty by default

parent 6d651013
......@@ -247,7 +247,7 @@ bool PropertyEditorNodeWrapper::exists()
QString PropertyEditorNodeWrapper::type()
{
if (!(m_modelNode.isValid()))
return QString("");
return QString();
return m_modelNode.simplifiedTypeName();
......
......@@ -235,7 +235,7 @@ QList<QmlObjectNode> QmlModelState::allAffectedNodes() const
QString QmlModelState::name() const
{
if (isBaseState())
return QString("");
return QString();
return modelNode().variantProperty("name").value().toString();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment