#include <QHBoxLayout>
#include <QShowEvent>
#include <QToolButton>
-
-#include <KDialog>
+#include <QDialog>
#include <QIcon>
#include <KIconLoader>
#include <QUrl>
if (!m_topLayout) {
m_topLayout = new QVBoxLayout(this);
m_topLayout->setMargin(0);
- m_topLayout->setSpacing(KDialog::spacingHint());
+
QHBoxLayout *controlsLayout = new QHBoxLayout(this);
controlsLayout->setMargin(0);
controlsLayout->setSpacing(0);
m_stopButton->show();
m_playButton->hide();
break;
+ case Phonon::StoppedState:
+ if (m_videoPlayer) {
+ m_videoPlayer->hide();
+ }
+ emit hasVideoChanged(false);
+ // fall through
default:
m_stopButton->hide();
m_playButton->show();
{
if (m_media) {
m_media->stop();
-
- m_stopButton->hide();
- m_playButton->show();
- }
-
- if (m_videoPlayer) {
- m_videoPlayer->hide();
}
-
- emit hasVideoChanged(false);
}
void PhononWidget::slotHasVideoChanged(bool hasVideo)