forked from qt-creator/qt-creator
Fix code model for nested Qml packages like Qt.labs.particles.
Task-number: QTCREATORBUG-926 Reviewed-by: Erik Verbruggen
This commit is contained in:
@@ -430,7 +430,7 @@ private:
|
||||
}
|
||||
|
||||
bool split(const QString &name, QString *packageName, QString *className) {
|
||||
int dotIdx = name.indexOf(QLatin1Char('.'));
|
||||
int dotIdx = name.lastIndexOf(QLatin1Char('.'));
|
||||
if (dotIdx != -1) {
|
||||
if (packageName)
|
||||
*packageName = name.left(dotIdx);
|
||||
|
Reference in New Issue
Block a user