Commit 173eea14 authored by Laurent Montel's avatar Laurent Montel 😁

Remove deprecated method

parent b6cb0fa9
......@@ -84,7 +84,7 @@ KFileAudioPreview::KFileAudioPreview(QWidget *parent, const QVariantList &)
connect(m_autoPlay, &QCheckBox::toggled, this, &KFileAudioPreview::toggleAuto);
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
layout->addWidget(d->videoWidget);
layout->addWidget(d->controls);
layout->addWidget(m_autoPlay, 0, Qt::AlignHCenter);
......
......@@ -63,7 +63,7 @@ protected:
volumeSlider.setMaximumWidth(80);
volumeSlider.hide();
layout.setMargin(0);
layout.setContentsMargins(0, 0, 0, 0);
layout.setSpacing(0);
layout.addWidget(&playButton);
layout.addWidget(&pauseButton);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment