aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmleasing/mainwindow.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2019-02-10 12:49:46 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2019-02-13 16:34:34 +0000
commit57604562db870f7b05d4349761d73e054dbe04c6 (patch)
tree1c54f4b21fbb7f7eecd6a46e5201706ab86afcc4 /tools/qmleasing/mainwindow.cpp
parent48402d5c4c97bae5762668aaaf9670c644120feb (diff)
QtDeclarative: replace deprecated functions
Replace the deprecated functions with it successors: - QFontMetrics::width() -> horizontalAdvance() - QLayout::setMargin() -> setContentsMargins() Change-Id: I2a2557cdb2eaec40e2c9955a0082372c582ec6b8 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'tools/qmleasing/mainwindow.cpp')
-rw-r--r--tools/qmleasing/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qmleasing/mainwindow.cpp b/tools/qmleasing/mainwindow.cpp
index c1a87642a5..679b4c0b91 100644
--- a/tools/qmleasing/mainwindow.cpp
+++ b/tools/qmleasing/mainwindow.cpp
@@ -82,7 +82,7 @@ MainWindow::MainWindow(QWidget *parent) :
splineEditor->setPreset(ui_properties.comboBox->currentText());
QVBoxLayout *groupBoxLayout = new QVBoxLayout(ui_properties.groupBox);
- groupBoxLayout->setMargin(0);
+ groupBoxLayout->setContentsMargins(QMargins());
ui_properties.groupBox->setLayout(groupBoxLayout);
groupBoxLayout->addWidget(splineEditor->pointListWidget());