summaryrefslogtreecommitdiffstats
path: root/examples/layouts
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-04-16 17:04:19 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-04-16 17:05:19 (GMT)
commit50adfa5d5be1e120b1d5defea3e1939f1eb7e730 (patch)
tree3d65f39c8f9fa66abc3d835b20751491c957201d /examples/layouts
parente1f9b0a54921397c9f6dc0e10b313814dcb908d3 (diff)
downloadQt-50adfa5d5be1e120b1d5defea3e1939f1eb7e730.zip
Qt-50adfa5d5be1e120b1d5defea3e1939f1eb7e730.tar.gz
Qt-50adfa5d5be1e120b1d5defea3e1939f1eb7e730.tar.bz2
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 be6b476..c4032d0 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()