Commit 00f8b9ee authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Thomas Hartmann

QmlDesigner: Fix lookup of navigator icons

The version check was simply wrong.
The version of the used item might be higher then the version in the
item library. We can still use the icon.

I removed the version check completely. There is no reason to have different
icons for different versions. This just increases the complexity and
introduces bugs without any reason/use cases.

Change-Id: Ib6d2040490739ee903ffe8eb308cd942b96444aa
Reviewed-by: default avatarTim Jenssen <>
parent 10bbc008
......@@ -274,9 +274,7 @@ QList<ItemLibraryEntry> ItemLibraryInfo::entriesForType(const QString &typeName,
QList<ItemLibraryEntry> entries;
foreach (const ItemLibraryEntry &entry, m_nameToEntryHash) {
if (entry.typeName() == typeName
&& entry.majorVersion() >= majorVersion
&& entry.minorVersion() >= minorVersion)
if (entry.typeName() == typeName)
entries += entry;
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