- QFontMetrics m(QApplication::font());
- _text_height = m.boundingRect(QRect(), 0, "Tg").height();
- _row_height = (_text_height * 6) / 4;
- const int annotation_height = (_text_height * 5) / 4;
-
- assert(_decoder_stack);
- const QString err = _decoder_stack->error_message();
- if (!err.isEmpty())
- {
- draw_unresolved_period(p, annotation_height, left, right);
- draw_error(p, err, left, right);
+ const int text_height = ViewItemPaintParams::text_height();
+ row_height_ = (text_height * 6) / 4;
+ const int annotation_height = (text_height * 5) / 4;
+
+ assert(decoder_stack_);
+ const QString err = decoder_stack_->error_message();
+ if (!err.isEmpty()) {
+ draw_unresolved_period(
+ p, annotation_height, pp.left(), pp.right());
+ draw_error(p, err, pp);