diff options
Diffstat (limited to 'qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/index/QtIndexImpl.java')
-rw-r--r-- | qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/index/QtIndexImpl.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/index/QtIndexImpl.java b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/index/QtIndexImpl.java index 9bc3f02bd72..66af6c15cbb 100644 --- a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/index/QtIndexImpl.java +++ b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/index/QtIndexImpl.java @@ -12,6 +12,7 @@ import org.eclipse.cdt.core.dom.ast.IBinding; import org.eclipse.cdt.core.index.IIndex; import org.eclipse.cdt.core.index.IIndexBinding; import org.eclipse.cdt.core.index.IndexFilter; +import org.eclipse.cdt.internal.qt.core.ASTUtil; import org.eclipse.cdt.internal.qt.core.pdom.AbstractQtPDOMClass; import org.eclipse.cdt.internal.qt.core.pdom.QtPDOMQObject; import org.eclipse.cdt.qt.core.index.IQGadget; @@ -51,12 +52,11 @@ public class QtIndexImpl extends QtIndex { private class QObjectImplAccessor implements CDTIndex.Accessor<IQObject> { - private final char[][] name; + private final char[] name; public QObjectImplAccessor(String[] qualName) { - name = new char[qualName.length][]; - for(int i = 0; i < name.length; ++i) - name[i] = qualName[i].toCharArray(); + // QObjects are stored in the Qt linkage using their fully qualified name. + name = ASTUtil.getFullyQualifiedName(qualName).toCharArray(); } @Override |