23 mPauseButton->setChecked(
true );
25 mForwardButton->setToolTip( tr(
"Play" ) );
26 mBackButton->setToolTip( tr(
"Reverse" ) );
27 mNextButton->setToolTip( tr(
"Go to next frame" ) );
28 mPreviousButton->setToolTip( tr(
"Go to previous frame" ) );
29 mPauseButton->setToolTip( tr(
"Pause" ) );
30 mRewindButton->setToolTip( tr(
"Rewind to start" ) );
31 mFastForwardButton->setToolTip( tr(
"Fast forward to end" ) );
33 connect( mForwardButton, &QPushButton::clicked,
this, &QgsPlaybackControllerWidget::togglePlayForward );
34 connect( mBackButton, &QPushButton::clicked,
this, &QgsPlaybackControllerWidget::togglePlayBackward );
35 connect( mPauseButton, &QPushButton::clicked,
this, &QgsPlaybackControllerWidget::pause );
36 connect( mNextButton, &QPushButton::clicked,
this, &QgsPlaybackControllerWidget::next );
37 connect( mPreviousButton, &QPushButton::clicked,
this, &QgsPlaybackControllerWidget::previous );
38 connect( mFastForwardButton, &QPushButton::clicked,
this, &QgsPlaybackControllerWidget::skipToEnd );
39 connect( mRewindButton, &QPushButton::clicked,
this, &QgsPlaybackControllerWidget::rewindToStart );