forked from qt-creator/qt-creator
qml inspector now shows correct categories for custom properties
Also, a class name is added in qmjs::bind so that we have a class name for custom properties defined inside a component.
This commit is contained in:
@@ -250,6 +250,14 @@ QString ObjectPropertiesView::propertyBaseClass(const QDeclarativeDebugObjectRef
|
||||
|
||||
PropertyTypeFinder find(document, snapshot, modelManager->importPaths());
|
||||
QString baseClassName = find(object.source().lineNumber(), object.source().columnNumber(), property.name());
|
||||
|
||||
if (baseClassName.isEmpty()) {
|
||||
if (!object.idString().isEmpty())
|
||||
baseClassName = object.idString();
|
||||
else
|
||||
baseClassName = QString("<%1>").arg(object.className());
|
||||
}
|
||||
|
||||
depth = find.depth();
|
||||
|
||||
return baseClassName;
|
||||
|
||||
Reference in New Issue
Block a user