mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-13 15:49:04 -05:00
Replaced deprecated QLayout::margin by QLayout::contentsMargins
This commit is contained in:
parent
5efed259e7
commit
990f4dbf09
1 changed files with 3 additions and 1 deletions
|
|
@ -23,6 +23,7 @@
|
||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
#include <QScrollBar>
|
#include <QScrollBar>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
#include <QMargins>
|
||||||
|
|
||||||
//*** FlowLayoutItem **********************************************************
|
//*** FlowLayoutItem **********************************************************
|
||||||
|
|
||||||
|
|
@ -598,7 +599,8 @@ QSize FlowLayout::minimumSize() const
|
||||||
foreach (item, m_itemList)
|
foreach (item, m_itemList)
|
||||||
size = size.expandedTo(item->minimumSize());
|
size = size.expandedTo(item->minimumSize());
|
||||||
|
|
||||||
size += QSize(2*margin(), 2*margin());
|
QMargins margins = contentsMargins();
|
||||||
|
size += QSize(margins.left() + margins.right(), margins.top() + margins.bottom());
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue