forked from qt-creator/qt-creator
QmlInspector: changed crumblepath appearance
Reviewed-by: Kai Koehne
This commit is contained in:
@@ -56,19 +56,22 @@ void ContextCrumblePath::updateContextPath(const QStringList &path, const QList<
|
||||
|
||||
clear();
|
||||
|
||||
for (int i=0; i<path.count(); i++) {
|
||||
pushElement(path[i],QVariant(debugIds[i]));
|
||||
}
|
||||
|
||||
m_isEmpty = path.isEmpty();
|
||||
if (m_isEmpty) {
|
||||
pushElement(tr("[no context]"));
|
||||
} else {
|
||||
for (int i=0; i<path.count(); i++) {
|
||||
pushElement(path[i],QVariant(debugIds[i]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ContextCrumblePath::selectIndex(int index)
|
||||
void ContextCrumblePath::addChildren(const QStringList &childrenNames, const QList<int> &childrenDebugIds)
|
||||
{
|
||||
CrumblePath::selectIndex(index);
|
||||
Q_ASSERT(childrenNames.count() == childrenDebugIds.count());
|
||||
for (int i=0; i<childrenNames.count(); i++) {
|
||||
addChild(childrenNames[i],QVariant(childrenDebugIds[i]));
|
||||
}
|
||||
}
|
||||
|
||||
bool ContextCrumblePath::isEmpty() const
|
||||
|
||||
Reference in New Issue
Block a user