Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment