aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmleasing/segmentproperties.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/segmentproperties.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/segmentproperties.cpp')
-rw-r--r--tools/qmleasing/segmentproperties.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qmleasing/segmentproperties.cpp b/tools/qmleasing/segmentproperties.cpp
index f37527f863..c61feef9a4 100644
--- a/tools/qmleasing/segmentproperties.cpp
+++ b/tools/qmleasing/segmentproperties.cpp
@@ -33,7 +33,7 @@ SegmentProperties::SegmentProperties(QWidget *parent) :
QWidget(parent), m_splineEditor(nullptr), m_blockSignals(false)
{
QVBoxLayout *layout = new QVBoxLayout(this);
- layout->setMargin(0);
+ layout->setContentsMargins(QMargins());
layout->setSpacing(2);
setLayout(layout);
{