diff options
-rw-r--r-- | plugins/autotest/testresultdelegate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/autotest/testresultdelegate.h b/plugins/autotest/testresultdelegate.h index 0627ed5ee5..8bc5d58ad8 100644 --- a/plugins/autotest/testresultdelegate.h +++ b/plugins/autotest/testresultdelegate.h @@ -56,11 +56,11 @@ private: m_top(options.rect.top()), m_bottom(options.rect.bottom()) { + m_typeAreaWidth = QFontMetrics(options.font).width(QLatin1String("XXXXXXXX")); int flexibleArea = lineAreaLeft() - textAreaLeft() - ITEM_SPACING; if (m_maxFileLength > flexibleArea / 2) m_realFileLength = flexibleArea / 2; m_fontHeight = QFontMetrics(options.font).height(); - m_typeAreaWidth = QFontMetrics(options.font).width(QLatin1String("XXXXXXXX")); } int top() const { return m_top + ITEM_MARGIN; } |