namespace pv {
namespace view {
-class TimeMarker;
+class TimeItem;
/**
* Widget to hold the labels over the cursors.
void mouseMoveEvent(QMouseEvent *e);
void mousePressEvent(QMouseEvent *e);
void mouseReleaseEvent(QMouseEvent *);
+ void leaveEvent(QEvent*);
+ void mouseDoubleClickEvent(QMouseEvent *e);
+
+ void keyPressEvent(QKeyEvent *e);
+
+private:
int calculateTextHeight();
- std::weak_ptr<TimeMarker> grabbed_marker_;
- QPoint mouse_down_point_;
- bool dragging_;
+ std::shared_ptr<TimeItem> mouse_down_item_;
const int textHeight_;
};