From: Joel Holdsworth Date: Sat, 20 Dec 2014 17:51:13 +0000 (+0000) Subject: CursorPair: Simplified label_rect X-Git-Tag: pulseview-0.3.0~328 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3fed1f316d4eebb20e10dbc04c6bd7ed6c6475da;p=pulseview.git CursorPair: Simplified label_rect --- diff --git a/pv/view/cursorpair.cpp b/pv/view/cursorpair.cpp index c3753e65..5df658db 100644 --- a/pv/view/cursorpair.cpp +++ b/pv/view/cursorpair.cpp @@ -84,9 +84,7 @@ pv::widgets::Popup* CursorPair::create_popup(QWidget *parent) QRectF CursorPair::label_rect(const QRectF &rect) const { - const QSizeF label_size( - text_size_.width() + LabelPadding.width() * 2, - text_size_.height() + LabelPadding.height() * 2); + const QSizeF label_size(text_size_ + LabelPadding * 2); const pair offsets(get_cursor_offsets()); const pair normal_offsets( (offsets.first < offsets.second) ? offsets :