6 #include <base-logging/Logging.hpp>
13 setPixmap(QPixmap(
":/timeline/triangle_slider"));
31 qreal leftBoundary = parentItem()->boundingRect().left();
32 qreal rightBoundary = parentItem()->boundingRect().right();
41 LOG_DEBUG_S <<
"Overlapping time markers!";
43 qreal overlapLeftBoundary;
44 qreal overlapRightBoundary;
48 overlapLeftBoundary = leftBoundary;
49 overlapRightBoundary = overlappingMarker->pos().x();
53 overlapLeftBoundary = overlappingMarker->pos().x();
54 overlapRightBoundary = rightBoundary;
57 std::cerr <<
"Unknown direction!" << std::endl;
67 unsigned index = ((
SlideBarItem*)parentItem())->markerIndex(
this);
73 parentItem()->update();
qreal getClickPosOffsetX(QGraphicsSceneMouseEvent *event)
QPointF boundarySnapPos(QPointF eventPos, qreal clickPosOffsetX, qreal leftBoundary, qreal rightBoundary)
void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Direction leftRight(BoundarySlider *otherMarker)
virtual int width() const
void setLastIndex(unsigned index)
virtual int height() const