From 048fd5955d1d715340b8b28f09a94518c291f865 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Wed, 12 Oct 2022 08:59:21 +0200 Subject: [PATCH] QmlProfiler: Allow setting breakpoints in profile result line The results of a profile run are not displayed as clickable textmarks anymore but moved to the annotation area. So do not block setting breakpoints in those lines. Fixes: QTCREATORBUG-28288 Change-Id: I517ce6f16dd9e03ff24b674e6b97aa4fcb5fe404 Reviewed-by: Christian Stenger --- src/plugins/qmlprofiler/qmlprofilertextmark.cpp | 7 ------- src/plugins/qmlprofiler/qmlprofilertextmark.h | 2 -- 2 files changed, 9 deletions(-) diff --git a/src/plugins/qmlprofiler/qmlprofilertextmark.cpp b/src/plugins/qmlprofiler/qmlprofilertextmark.cpp index c35a18a8926..2775c5771bf 100644 --- a/src/plugins/qmlprofiler/qmlprofilertextmark.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertextmark.cpp @@ -34,13 +34,6 @@ void QmlProfilerTextMark::addTypeId(int typeId) setLineAnnotation(statisticsView->summary(m_typeIds)); } -void QmlProfilerTextMark::clicked() -{ - int typeId = m_typeIds.takeFirst(); - m_typeIds.append(typeId); - emit m_viewManager->typeSelected(typeId); -} - QmlProfilerTextMarkModel::QmlProfilerTextMarkModel(QObject *parent) : QObject(parent) { } diff --git a/src/plugins/qmlprofiler/qmlprofilertextmark.h b/src/plugins/qmlprofiler/qmlprofilertextmark.h index de049afbf24..75ed95ded76 100644 --- a/src/plugins/qmlprofiler/qmlprofilertextmark.h +++ b/src/plugins/qmlprofiler/qmlprofilertextmark.h @@ -17,8 +17,6 @@ public: const Utils::FilePath &fileName, int lineNumber); void addTypeId(int typeId); - void clicked() override; - bool isClickable() const override { return true; } bool addToolTipContent(QLayout *target) const override; private: