diff options
Diffstat (limited to 'examples/layouts')
-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 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() |