aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-03-16 10:50:58 +0100
committerUlf Hermann <ulf.hermann@qt.io>2017-03-16 16:19:22 +0000
commit883492c13536694f5565295ce87ce17a5a42444f (patch)
tree271f34b53b8323f9b8aff65bc926e15f71179561 /src/plugins/qmlprofiler
parentb2e537baaa258dd1d5abfcb91b2e62308ee9404d (diff)
TextEditor: Set widthFactor from TextMark ctor
The text marks are added to the document from their ctor. The document then uses the widthFactor to calculate the space needed for them. If the widthFactor is only set afterwards, the calculated space is wrong. Change-Id: Ic7d24f99cc78d1bf084b2b1cfdf6b955496072f3 Task-number: QTCREATORBUG-17833 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertextmark.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertextmark.cpp b/src/plugins/qmlprofiler/qmlprofilertextmark.cpp
index 5cdcaeb183..3060c8f140 100644
--- a/src/plugins/qmlprofiler/qmlprofilertextmark.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilertextmark.cpp
@@ -33,10 +33,9 @@ namespace Internal {
QmlProfilerTextMark::QmlProfilerTextMark(QmlProfilerTool *tool, int typeId, const QString &fileName,
int lineNumber) :
- TextMark(fileName, lineNumber, Constants::TEXT_MARK_CATEGORY), m_tool(tool),
+ TextMark(fileName, lineNumber, Constants::TEXT_MARK_CATEGORY, 3.5), m_tool(tool),
m_typeIds(1, typeId)
{
- setWidthFactor(3.5);
}
void QmlProfilerTextMark::addTypeId(int typeId)