forked from qt-creator/qt-creator
QmlDesigner.MetaInfo: Fix for qualification
If there is no package the unqualified name is the name not an empty string. Change-Id: I04a51fc79ea9e312e2035ce80eb0f846673a3a44 Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
@@ -778,7 +778,7 @@ static QString getUnqualifiedName(const QString &name)
|
||||
{
|
||||
const QStringList nameComponents = name.split('.');
|
||||
if (nameComponents.size() < 2)
|
||||
return QString();
|
||||
return name;
|
||||
return nameComponents.last();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user