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

Port deprecated methods

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