Commit 11ad0fa5 authored by Laurent Montel's avatar Laurent Montel 😁

remove deprecated methods

parent 9433f803
......@@ -58,7 +58,7 @@ Palapeli::MouseInputButton::MouseInputButton(QWidget* parent)
//setup layout
QHBoxLayout* layout = new QHBoxLayout;
setLayout(layout);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
layout->addWidget(m_iconLabel);
layout->addWidget(m_mainLabel);
layout->addWidget(m_clearButton);
......
......@@ -56,7 +56,7 @@ void Palapeli::BooleanPropertyWidget::initialize(const Pala::SlicerProperty* pro
m_checkBox->setChecked(property->defaultValue().toBool());
QHBoxLayout* layout = new QHBoxLayout;
layout->addWidget(m_checkBox);
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
setLayout(layout);
}
......@@ -109,7 +109,7 @@ void Palapeli::IntegerPropertyWidget::initialize(const Pala::SlicerProperty* pro
QHBoxLayout* layout = new QHBoxLayout;
layout->addWidget(usedWidget);
usedWidget->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed));
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
setLayout(layout);
}
......@@ -150,7 +150,7 @@ void Palapeli::StringPropertyWidget::initialize(const Pala::SlicerProperty* prop
QHBoxLayout* layout = new QHBoxLayout;
layout->addWidget(usedWidget);
usedWidget->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed));
layout->setMargin(0);
layout->setContentsMargins(0, 0, 0, 0);
setLayout(layout);
}
......
......@@ -84,7 +84,7 @@ Palapeli::CollectionView::CollectionView(QWidget* parent)
// Removed this because setMargin is obsolete and (0) cuts off the right
// hand and bottom edges of the search and ListView widgets --- on Apple
// OSX at least. The default margin is 11 pixels all round and looks OK.
// layout->setMargin(0);
// layout->setContentsMargins(0, 0, 0, 0);
}
void Palapeli::CollectionView::setModel(QAbstractItemModel* model)
......
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