#include "phononwidget.h"
+#include <KIconLoader>
+#include <KLocalizedString>
#include <Phonon/AudioOutput>
#include <Phonon/MediaObject>
#include <Phonon/SeekSlider>
#include <Phonon/VideoWidget>
-#include <QVBoxLayout>
#include <QShowEvent>
#include <QToolButton>
-#include <KIconLoader>
-#include <KLocalizedString>
+#include <QVBoxLayout>
class EmbeddedVideoPlayer : public Phonon::VideoWidget
{
if (!m_topLayout) {
m_topLayout = new QVBoxLayout(this);
- m_topLayout->setMargin(0);
+ m_topLayout->setContentsMargins(0, 0, 0, 0);
QHBoxLayout *controlsLayout = new QHBoxLayout(this);
- controlsLayout->setMargin(0);
+ controlsLayout->setContentsMargins(0, 0, 0, 0);
controlsLayout->setSpacing(0);
m_playButton = new QToolButton(this);
m_videoPlayer->hide();
}
emit hasVideoChanged(false);
- // fall through
+ Q_FALLTHROUGH();
default:
m_stopButton->hide();
m_playButton->show();