Commit 06300f8f authored by Laurent Montel's avatar Laurent Montel 😁

Port deprecated methods

parent 0b1ee462
......@@ -36,7 +36,7 @@ AreaListView::AreaListView(QWidget *parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setSpacing(0);
mainLayout->setMargin(0);
mainLayout->setContentsMargins(0, 0, 0, 0);
listView = new QTreeWidget(this);
listView->setColumnCount(2);
......
......@@ -275,7 +275,7 @@ QWidget* AreaDialog::createGeneralPage()
// the accelerator for the row is working
QWidget *hbox = new QWidget;
QHBoxLayout *hboxLayout = new QHBoxLayout(hbox);
hboxLayout->setMargin(0);
hboxLayout->setContentsMargins(0, 0, 0, 0);
hrefEdit = new QLineEdit(area->attribute("href"));
hboxLayout->addWidget(hrefEdit);
QPushButton *btn = new QPushButton;
......@@ -312,7 +312,7 @@ QWidget* AreaDialog::createCoordsPage()
{
QFrame* page = new QFrame(this);
QVBoxLayout *layout = new QVBoxLayout(page);
layout->setMargin(5);
layout->setContentsMargins(5, 5, 5, 5);
coordsEdit = createCoordsEdit(page, area);
layout->addWidget(coordsEdit);
......@@ -369,7 +369,7 @@ AreaDialog::AreaDialog(KImageMapEditor* parent, Area* a)
QVBoxLayout *layout = new QVBoxLayout(this);
// To get a margin around everything
layout->setMargin(5);
layout->setContentsMargins(5, 5, 5, 5);
QLabel *lbl = new QLabel("<b>"+shape+"</b>");
lbl->setTextFormat(Qt::RichText);
......
......@@ -30,7 +30,7 @@ MapsListView::MapsListView(QWidget *parent)
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setSpacing(0);
mainLayout->setMargin(0);
mainLayout->setContentsMargins(0, 0, 0, 0);
_listView = new QTreeWidget(this);
_listView->setColumnCount(1);
......
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