forked from qt-creator/qt-creator
Use FileName in TextMark
Change-Id: I3666d95dc8ef3b7da099d6d30f5cb4678a349493 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -33,11 +33,13 @@
|
||||
#include <QLayout>
|
||||
#include <QPainter>
|
||||
|
||||
using namespace Utils;
|
||||
|
||||
namespace QmlProfiler {
|
||||
namespace Internal {
|
||||
|
||||
QmlProfilerTextMark::QmlProfilerTextMark(QmlProfilerViewManager *viewManager, int typeId,
|
||||
const QString &fileName, int lineNumber) :
|
||||
const FileName &fileName, int lineNumber) :
|
||||
TextMark(fileName, lineNumber, Constants::TEXT_MARK_CATEGORY, 3.5), m_viewManager(viewManager),
|
||||
m_typeIds(1, typeId)
|
||||
{
|
||||
@@ -109,7 +111,10 @@ void QmlProfilerTextMarkModel::createMarks(QmlProfilerViewManager *viewManager,
|
||||
m_marks.last()->addTypeId(it->typeId);
|
||||
} else {
|
||||
lineNumber = it->lineNumber;
|
||||
m_marks << new QmlProfilerTextMark(viewManager, it->typeId, fileName, it->lineNumber);
|
||||
m_marks << new QmlProfilerTextMark(viewManager,
|
||||
it->typeId,
|
||||
FileName::fromString(fileName),
|
||||
it->lineNumber);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user