#include <BoundarySlider.h>
Inherits Slider.
Definition at line 11 of file BoundarySlider.h.
◆ BoundarySlider() [1/2]
| BoundarySlider::BoundarySlider |
( |
| ) |
|
◆ BoundarySlider() [2/2]
| BoundarySlider::BoundarySlider |
( |
QGraphicsItem * |
parent, |
|
|
unsigned |
initIdx |
|
) |
| |
Definition at line 12 of file BoundarySlider.cc.
13 setPixmap(QPixmap(
":/timeline/triangle_slider"));
virtual int height() const
virtual int width() const
◆ leftRight()
◆ mouseMoveEvent()
| void BoundarySlider::mouseMoveEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
protected |
Definition at line 29 of file BoundarySlider.cc.
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)
Direction leftRight(BoundarySlider *otherMarker)
void setLastIndex(unsigned index)
The documentation for this class was generated from the following files:
- /build/rock-master-18.09-gui-rock-widget-collection-0.20180124/src/timeline/BoundarySlider.h
- /build/rock-master-18.09-gui-rock-widget-collection-0.20180124/src/timeline/BoundarySlider.cc