Commit 1ca4cad6 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Compile with Qt 5 (QFontMetrics constructor explicit).



Change-Id: Idd695326b4b3e162e2b691b3df0a5a4bfbff2fe6
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent 7ba90de0
......@@ -80,10 +80,10 @@ void CallgrindTextMark::paint(QPainter *painter, const QRect &paintRect) const
// decrease font size if paint rect is too small (very unlikely, but may happen)
QFont font = painter->font();
QFontMetrics fm = font;
QFontMetrics fm = QFontMetrics(font);
while (fm.boundingRect(text).width() > paintRect.width()) {
font.setPointSize(font.pointSize() - 1);
fm = font;
fm = QFontMetrics(font);
}
painter->setFont(font);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment