1#include <Gui/Timeline/TimelineSlider.hpp>
7TimelineSlider::TimelineSlider( QWidget* parent ) : QLabel( parent ) {}
9void TimelineSlider::mousePressEvent( QMouseEvent* event ) {
10 if ( event->button() == Qt::LeftButton ) {
12 emit slide( event->x() );
16void TimelineSlider::mouseReleaseEvent( QMouseEvent* event ) {
17 if ( event->button() == Qt::LeftButton ) {
18 setStyleSheet(
"background-color: gray" );
24void TimelineSlider::mouseMoveEvent( QMouseEvent* event ) {
25 if ( m_clicked ) { emit slide( event->x() ); }