forked from qt-creator/qt-creator
Debugger: Remove some uses of semi-global currentEngine()
Make use of recent TreeModel improvements in various tool views, push more operations into the engine- owned data models, specifically context menu creation. Change-Id: I479c97102b9fb81611c6461c6df1cec59295179a Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <utils/basetreeview.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
|
||||
namespace Debugger {
|
||||
@@ -34,13 +35,12 @@ namespace Internal {
|
||||
class StackTreeView : public Utils::BaseTreeView
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(Debugger::Internal::StackTreeView)
|
||||
|
||||
public:
|
||||
StackTreeView();
|
||||
|
||||
private:
|
||||
void rowActivated(const QModelIndex &index);
|
||||
void setModel(QAbstractItemModel *model);
|
||||
void contextMenuEvent(QContextMenuEvent *ev);
|
||||
void setModel(QAbstractItemModel *model) override;
|
||||
|
||||
void showAddressColumn(bool on);
|
||||
void reloadFullStack();
|
||||
|
||||
Reference in New Issue
Block a user