diff options
author | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-04-16 19:04:19 +0200 |
---|---|---|
committer | Jan-Arve Sæther <jan-arve.saether@nokia.com> | 2009-04-16 19:05:19 +0200 |
commit | 50adfa5d5be1e120b1d5defea3e1939f1eb7e730 (patch) | |
tree | 3d65f39c8f9fa66abc3d835b20751491c957201d /examples | |
parent | e1f9b0a54921397c9f6dc0e10b313814dcb908d3 (diff) | |
download | qt4-tools-50adfa5d5be1e120b1d5defea3e1939f1eb7e730.tar.gz |
Use setContentsMargins() instead of setMargin().
setMargin() is deprecated.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/layouts/flowlayout/flowlayout.cpp | 4 |
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() |