Qml JS Inspector: Added context crumble path as a dock widget

The crumble path shows the current context of the debugger/inspector.
This commit is contained in:
Lasse Holmstedt
2010-08-02 17:25:29 +02:00
parent ef57d20a67
commit 524d4453e5
16 changed files with 124 additions and 48 deletions

View File

@@ -0,0 +1,29 @@
#include "qmljscontextcrumblepath.h"
#include <QMouseEvent>
#include <QDebug>
namespace QmlJSInspector {
namespace Internal {
ContextCrumblePath::ContextCrumblePath(QWidget *parent)
: CrumblePath(parent)
{
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
}
ContextCrumblePath::~ContextCrumblePath()
{
}
void ContextCrumblePath::updateContextPath(const QStringList &path)
{
clear();
foreach(const QString &pathPart, path) {
pushElement(pathPart);
}
}
} // namespace Internal
} // namespace QmlJSInspector