6#include <QGraphicsLineItem>
7#include <QGraphicsRectItem>
8#include <QGraphicsScene>
9#include <QGraphicsSimpleTextItem>
10#include <QKeySequence>
49 int m_currentIndexLeft;
53 QGraphicsScene *timelineScene;
54 QGraphicsLineItem *cursor;
55 QGraphicsLineItem *cursorLeft;
56 QGraphicsSimpleTextItem *indexNumber;
60 void setLayout(
const int width,
const int imageNumber);
65 void update(
const int index);
68 void valueChanged(
int value);
Draw a time line with cursor, hover and marker set.
Definition: timeline.h:26
void update(const int index)
Redraw the widget keeping markers and cursors.
Definition: timeline.cpp:222
void setMaximum(const int max)
Set the maximum value.
Definition: timeline.cpp:292
void setMinimum(const int min)
Set the minimum value, currently forced to zero.
Definition: timeline.cpp:300
void resizeEvent(QResizeEvent *event)
Handle the widget redrawing when resized.
Definition: timeline.cpp:140
void setCursorValue(const int index)
Set the cursor at a given value.
Definition: timeline.cpp:237
void drawMarker(const int index)
Draw a line marker at a given index.
Definition: timeline.cpp:202
void setValue(const int index)
Set the left cursor (left click cursor) at a given value.
Definition: timeline.cpp:257
int value()
Return the last left value.
Definition: timeline.cpp:277
void setLayout(const int width, const int imageNumber)
Set the layout of the timeline.
Definition: timeline.cpp:100
void clearMarker(const int index)
Delete a line marker at a given index.
Definition: timeline.cpp:213
int currentValue()
Return the current value.
Definition: timeline.cpp:284
bool eventFilter(QObject *target, QEvent *event)
Handle the pointer event, click and hover.
Definition: timeline.cpp:149
void togglePlay()
Start/Stop the autoplay of the replay.
Definition: timeline.cpp:307