X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/533f050855a50212bba7be57a1590f9ce743e26d..405aa4878f75:/src/panels/information/phononwidget.cpp diff --git a/src/panels/information/phononwidget.cpp b/src/panels/information/phononwidget.cpp index 94523c40d..95f535713 100644 --- a/src/panels/information/phononwidget.cpp +++ b/src/panels/information/phononwidget.cpp @@ -20,19 +20,16 @@ #include "phononwidget.h" +#include +#include #include #include #include -#pragma GCC diagnostic push // Phonon doesn't use C++11 compiler by default, so override -#pragma GCC diagnostic ignored "-Wsuggest-override" // specifier is not available. Remove this pragmas after fixing it. #include -#pragma GCC diagnostic pop -#include #include #include -#include -#include +#include class EmbeddedVideoPlayer : public Phonon::VideoWidget { @@ -107,10 +104,10 @@ void PhononWidget::showEvent(QShowEvent *event) 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); @@ -170,7 +167,7 @@ void PhononWidget::stateChanged(Phonon::State newstate) m_videoPlayer->hide(); } emit hasVideoChanged(false); - // fall through + Q_FALLTHROUGH(); default: m_stopButton->hide(); m_playButton->show();