Commit 0b3da398 authored by Laurent Montel's avatar Laurent Montel

Port setMargins -> setContentsMargins

parent a15023a2
Pipeline #7935 passed with stage
in 9 minutes and 53 seconds
......@@ -75,7 +75,7 @@ AdvancedSearchDialog::AdvancedSearchDialog(const QString &defaultName,
QHBoxLayout *l = new QHBoxLayout(buttons);
l->setSpacing(5);
l->setMargin(0);
l->setContentsMargins(0, 0, 0, 0);
const auto &clearGuiItem = KStandardGuiItem::clear();
QPushButton *clearButton = new QPushButton(clearGuiItem.icon(), clearGuiItem.text());
......
......@@ -358,7 +358,7 @@ int FileRenamerWidget::addRowCategory(TagType category)
QFrame *frame = new QFrame(m_mainFrame);
QHBoxLayout *frameLayout = new QHBoxLayout(frame);
frameLayout->setMargin(3);
frameLayout->setContentsMargins(3, 3, 3, 3);
row.widget = frame;
frame->setFrameShape(QFrame::Box);
......@@ -534,7 +534,7 @@ void FileRenamerWidget::createTagRows()
m_ui->m_mainView->setWidgetResizable(true);
QVBoxLayout *frameLayout = new QVBoxLayout(m_mainFrame);
frameLayout->setMargin(10);
frameLayout->setContentsMargins(10, 10, 10, 10);
frameLayout->setSpacing(5);
// OK, the deal with the categoryOrder variable is that we need to create
......
......@@ -65,7 +65,7 @@ NowPlaying::NowPlaying(QWidget *parent, PlaylistCollection *collection) :
QHBoxLayout *layout = new QHBoxLayout(this);
setLayout(layout);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
layout->setSpacing(3);
// With HiDPI the text might actually be bigger... try to account for
......
......@@ -182,7 +182,7 @@ void PlaylistSplitter::setupLayout()
QWidget *top = new QWidget(m_editorSplitter);
QVBoxLayout *topLayout = new QVBoxLayout(top);
topLayout->setMargin(0);
topLayout->setContentsMargins(0, 0, 0, 0);
topLayout->setSpacing(0);
m_playlistStack = new QStackedWidget(top);
......
......@@ -46,7 +46,7 @@ SearchLine::SearchLine(QWidget *parent, bool simple)
m_searchFieldsBox(0)
{
QHBoxLayout *layout = new QHBoxLayout(this);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
layout->setSpacing(5);
if(!m_simple) {
......
......@@ -331,7 +331,7 @@ QWidget *SystemTray::createInfoBox(QBoxLayout *parentLayout, const FileHandle &f
auto infoBox = new QWidget;
auto infoBoxVLayout = new QVBoxLayout(infoBox);
infoBoxVLayout->setSpacing(3);
infoBoxVLayout->setMargin(3);
infoBoxVLayout->setContentsMargins(3, 3, 3, 3);
parentLayout->addWidget(infoBox);
......
......@@ -45,7 +45,7 @@ VolumePopupButton::VolumePopupButton( QWidget * parent )
mainWidget->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Preferred );
auto mainBox = new QVBoxLayout( mainWidget );
mainBox->setMargin( 0 );
mainBox->setContentsMargins( 0 , 0 , 0 , 0 );
mainBox->setSpacing( 0 );
m_volumeLabel = new QLabel;
......@@ -57,7 +57,7 @@ VolumePopupButton::VolumePopupButton( QWidget * parent )
auto sliderBoxLayout = new QHBoxLayout( sliderBox );
sliderBoxLayout->setSpacing( 0 );
sliderBoxLayout->setMargin( 0 );
sliderBoxLayout->setContentsMargins( 0 , 0 , 0 , 0 );
mainBox->addWidget(sliderBox);
m_volumeSlider = new VolumeSlider( 100, sliderBox, false );
......
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