X-Git-Url: http://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fdecodetrace.cpp;fp=pv%2Fviews%2Ftrace%2Fdecodetrace.cpp;h=93c7c5a93cdd3bae6af7db425b612e12618ab200;hp=67c9b1c48409e4e2a2525f6592ee3d47d963afde;hb=ae726b70a7ada9a4be5808e00f0c951318479684;hpb=f14dee773586e9f6afbeac8b7f552fb378f36d9b diff --git a/pv/views/trace/decodetrace.cpp b/pv/views/trace/decodetrace.cpp index 67c9b1c4..93c7c5a9 100644 --- a/pv/views/trace/decodetrace.cpp +++ b/pv/views/trace/decodetrace.cpp @@ -161,7 +161,8 @@ DecodeTrace::DecodeTrace(pv::Session &session, // Determine shortest string we want to see displayed in full QFontMetrics m(QApplication::font()); - min_useful_label_width_ = m.width("XX"); // e.g. two hex characters + // e.g. two hex characters + min_useful_label_width_ = util::text_width(m, "XX"); default_row_height_ = (ViewItemPaintParams::text_height() * 6) / 4; annotation_height_ = (ViewItemPaintParams::text_height() * 5) / 4;