* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "cursor.h"
+#include "cursor.hpp"
-#include "view.h"
-#include "pv/util.h"
+#include "view.hpp"
+#include "pv/util.hpp"
#include <QBrush>
#include <QPainter>
label_size.width(), height);
}
-void Cursor::paint_label(QPainter &p, const QRect &rect,
- unsigned int prefix)
+void Cursor::paint_label(QPainter &p, const QRect &rect)
{
const shared_ptr<Cursor> other(get_other_cursor());
assert(other);
+ const unsigned int prefix = view_.tick_prefix();
+
compute_text_size(p, prefix);
const QRectF r(get_label_rect(rect));