forked from qt-creator/qt-creator
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 <christian.stenger@qt.io>
This commit is contained in:
@@ -34,13 +34,6 @@ void QmlProfilerTextMark::addTypeId(int typeId)
|
|||||||
setLineAnnotation(statisticsView->summary(m_typeIds));
|
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)
|
QmlProfilerTextMarkModel::QmlProfilerTextMarkModel(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,8 +17,6 @@ public:
|
|||||||
const Utils::FilePath &fileName, int lineNumber);
|
const Utils::FilePath &fileName, int lineNumber);
|
||||||
void addTypeId(int typeId);
|
void addTypeId(int typeId);
|
||||||
|
|
||||||
void clicked() override;
|
|
||||||
bool isClickable() const override { return true; }
|
|
||||||
bool addToolTipContent(QLayout *target) const override;
|
bool addToolTipContent(QLayout *target) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user