forked from qt-creator/qt-creator
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:
29
src/plugins/qmljsinspector/qmljscontextcrumblepath.cpp
Normal file
29
src/plugins/qmljsinspector/qmljscontextcrumblepath.cpp
Normal 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
|
||||
Reference in New Issue
Block a user