summaryrefslogtreecommitdiffstats
path: root/examples/layouts
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-04-16 19:04:19 +0200
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-04-16 19:05:19 +0200
commit50adfa5d5be1e120b1d5defea3e1939f1eb7e730 (patch)
tree3d65f39c8f9fa66abc3d835b20751491c957201d /examples/layouts
parente1f9b0a54921397c9f6dc0e10b313814dcb908d3 (diff)
Use setContentsMargins() instead of setMargin().
setMargin() is deprecated.
Diffstat (limited to 'examples/layouts')
-rw-r--r--examples/layouts/flowlayout/flowlayout.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/layouts/flowlayout/flowlayout.cpp b/examples/layouts/flowlayout/flowlayout.cpp
index be6b476780..c4032d00e8 100644
--- a/examples/layouts/flowlayout/flowlayout.cpp
+++ b/examples/layouts/flowlayout/flowlayout.cpp
@@ -46,13 +46,13 @@
FlowLayout::FlowLayout(QWidget *parent, int margin, int hSpacing, int vSpacing)
: QLayout(parent), m_hSpace(hSpacing), m_vSpace(vSpacing)
{
- setMargin(margin);
+ setContentsMargins(margin, margin, margin, margin);
}
FlowLayout::FlowLayout(int margin, int hSpacing, int vSpacing)
: m_hSpace(hSpacing), m_vSpace(vSpacing)
{
- setMargin(margin);
+ setContentsMargins(margin, margin, margin, margin);
}
FlowLayout::~FlowLayout()