// Draw the cursors
if (view_.cursors_shown())
- view_.cursors()->draw_markers(p, r);
+ view_.cursors()->paint_label(p, r);
}
void CursorHeader::mouseMoveEvent(QMouseEvent *e)
if (!dragging_ && mouse_down_item_) {
Popup *const p = mouse_down_item_->create_popup(&view_);
- const QPoint arrpos(mouse_down_item_->get_x(),
- height() - BaselineOffset);
- p->set_position(mapToGlobal(arrpos), Popup::Bottom);
- p->show();
+ if (p) {
+ const QPoint arrpos(mouse_down_item_->get_x(),
+ height() - BaselineOffset);
+ p->set_position(mapToGlobal(arrpos), Popup::Bottom);
+ p->show();
+ }
}
dragging_ = false;