From dd5105b023d9721cfc1888718967bb893d5febfc Mon Sep 17 00:00:00 2001 From: Craig Watson Date: Mon, 7 Mar 2016 10:19:40 +0100 Subject: [PATCH] Video item: make sure progress bar doesn't hide at end of playback --- src/domain/UBGraphicsMediaItemDelegate.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/domain/UBGraphicsMediaItemDelegate.cpp b/src/domain/UBGraphicsMediaItemDelegate.cpp index 78072128..dcd1ae2d 100644 --- a/src/domain/UBGraphicsMediaItemDelegate.cpp +++ b/src/domain/UBGraphicsMediaItemDelegate.cpp @@ -243,6 +243,10 @@ void UBGraphicsMediaItemDelegate::mediaStatusChanged(QMediaPlayer::MediaStatus s delegated()->pause(); } + // At the end of the video, make sure the progress bar doesn't autohide + if (status == QMediaPlayer::EndOfMedia) + showToolBar(); + // in most cases, the only necessary action is to update the play/pause state updatePlayPauseState();