forked from qt-creator/qt-creator
Debugger: Consolidate Debugger view creation
Change-Id: I43353911c7c0c8250ee2bccddcf5fdccf04d457c Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -80,6 +80,11 @@ using namespace AST;
|
||||
namespace Debugger {
|
||||
namespace Internal {
|
||||
|
||||
static QTreeView *inspectorTreeView()
|
||||
{
|
||||
return DebuggerCore::inspectorView();
|
||||
}
|
||||
|
||||
class ASTWalker : public Visitor
|
||||
{
|
||||
public:
|
||||
@@ -1359,15 +1364,6 @@ bool QmlEngine::adjustBreakpointLineAndColumn(
|
||||
return success;
|
||||
}
|
||||
|
||||
WatchTreeView *QmlEngine::inspectorTreeView() const
|
||||
{
|
||||
DebuggerMainWindow *dw = qobject_cast<DebuggerMainWindow *>(debuggerCore()->mainWindow());
|
||||
LocalsAndExpressionsWindow *leW = qobject_cast<LocalsAndExpressionsWindow *>(
|
||||
dw->dockWidget(_(DOCKWIDGET_WATCHERS))->widget());
|
||||
WatchWindow *inspectorWindow = qobject_cast<WatchWindow *>(leW->inspectorWidget());
|
||||
return qobject_cast<WatchTreeView *>(inspectorWindow->treeView());
|
||||
}
|
||||
|
||||
DebuggerEngine *createQmlEngine(const DebuggerStartParameters &sp)
|
||||
{
|
||||
return new QmlEngine(sp);
|
||||
|
||||
Reference in New Issue
Block a user