* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef PULSEVIEW_PV_VIEW_TIMEITEM_H
-#define PULSEVIEW_PV_VIEW_TIMEITEM_H
+#ifndef PULSEVIEW_PV_VIEW_TIMEITEM_HPP
+#define PULSEVIEW_PV_VIEW_TIMEITEM_HPP
#include "viewitem.hpp"
virtual float get_x() const = 0;
/**
- * Paints the marker's label to the ruler.
- * @param p The painter to draw with.
- * @param rect The rectangle of the ruler client area.
+ * Drags the item to a delta relative to the drag point.
+ * @param delta the offset from the drag point.
*/
- virtual void paint_label(QPainter &p, const QRect &rect) = 0;
+ void drag_by(const QPoint &delta);
protected:
View &view_;
} // namespace view
} // namespace pv
-#endif // PULSEVIEW_PV_VIEW_TIMEITEM_H
+#endif // PULSEVIEW_PV_VIEW_TIMEITEM_HPP