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