QmlObserver: Disable crumblepath if not active

This commit is contained in:
Kai Koehne
2011-04-27 17:20:44 +02:00
parent 7812f15240
commit 8a28be85c6
6 changed files with 29 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ void ContextCrumblePath::updateContextPath(const QStringList &path, const QList<
{
Q_ASSERT(path.count() == debugIds.count());
clear();
CrumblePath::clear();
m_isEmpty = path.isEmpty();
if (m_isEmpty) {
@@ -66,6 +66,11 @@ void ContextCrumblePath::addChildren(const QStringList &childrenNames, const QLi
addChild(childrenNames[i], QVariant(childrenDebugIds[i]));
}
void ContextCrumblePath::clear()
{
updateContextPath(QStringList(), QList<int>());
}
bool ContextCrumblePath::isEmpty() const
{
return m_isEmpty;