aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger
diff options
context:
space:
mode:
authorAlessandro Portale <[email protected]>2020-11-18 22:42:51 +0100
committerAlessandro Portale <[email protected]>2020-11-19 08:42:14 +0000
commitb2a766a79ac778febff87f0def34cf6d3f4f93e3 (patch)
tree8948acefd801721406f4e4015dde6616f4ee0303 /src/plugins/debugger
parent0c0347ce61a55b972178a8a07bb4f0c819555219 (diff)
Don't access static functions/fields via instance
Courtesy of readability-static-accessed-through-instance Change-Id: I71f54244f1e091315dac2943d9e1bfad6efa56a9 Reviewed-by: Jarek Kobus <[email protected]>
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp6
-rw-r--r--src/plugins/debugger/qml/qmlengine.cpp2
-rw-r--r--src/plugins/debugger/watchhandler.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 6ab8ee18baa..9d77ce5d9d5 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -486,7 +486,7 @@ public:
auto editorAndFindWidget = new QWidget;
editorAndFindWidget->setLayout(editorHolderLayout);
- editorHolderLayout->addWidget(mainWindow->centralWidgetStack());
+ editorHolderLayout->addWidget(DebuggerMainWindow::centralWidgetStack());
editorHolderLayout->addWidget(new FindToolBarPlaceHolder(editorAndFindWidget));
auto documentAndRightPane = new MiniSplitter;
@@ -517,7 +517,7 @@ public:
// Navigation and right-side window.
auto splitter = new MiniSplitter;
- splitter->setFocusProxy(mainWindow->centralWidgetStack());
+ splitter->setFocusProxy(DebuggerMainWindow::centralWidgetStack());
splitter->addWidget(new NavigationWidgetPlaceHolder(MODE_DEBUG, Side::Left));
splitter->addWidget(mainWindowSplitter);
splitter->setStretchFactor(0, 0);
@@ -833,7 +833,7 @@ DebuggerPluginPrivate::DebuggerPluginPrivate(const QStringList &arguments)
engineManagerView->setWindowTitle(tr("Running Debuggers"));
engineManagerView->setSettings(ICore::settings(), "Debugger.SnapshotView");
engineManagerView->setIconSize(QSize(10, 10));
- engineManagerView->setModel(m_engineManager.model());
+ engineManagerView->setModel(EngineManager::model());
engineManagerView->setSelectionMode(QAbstractItemView::SingleSelection);
engineManagerView->enableColumnHiding();
diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp
index cf6e067a6ce..d13bf6a4490 100644
--- a/src/plugins/debugger/qml/qmlengine.cpp
+++ b/src/plugins/debugger/qml/qmlengine.cpp
@@ -2136,7 +2136,7 @@ void QmlEnginePrivate::handleFrame(const QVariantMap &response)
// Send watchers list
if (stackHandler->isContentsValid() && stackHandler->currentFrame().isUsable()) {
- const QStringList watchers = watchHandler->watchedExpressions();
+ const QStringList watchers = WatchHandler::watchedExpressions();
for (const QString &exp : watchers) {
const QString iname = watchHandler->watcherName(exp);
evaluate(exp, -1, [this, iname, exp](const QVariantMap &response) {
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index a7e48fcfaf7..3bf6444b8ef 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -1672,7 +1672,7 @@ bool WatchModel::contextMenuEvent(const ItemViewEvent &ev)
[this, item] { removeWatchItem(item); });
addAction(menu, tr("Remove All Expression Evaluators"),
- canRemoveWatches && !m_handler->watchedExpressions().isEmpty(),
+ canRemoveWatches && !WatchHandler::watchedExpressions().isEmpty(),
[this] { clearWatches(); });
addAction(menu, tr("Select Widget to Add into Expression Evaluator"),