Example #1
0
QSizeF QGraphicsFlowLayout::minimumSize() const
{
	QSizeF size;
	QGraphicsLayoutItem *item;
	foreach (item, m_itemList)
		size = size.expandedTo(item->minimumSize());

	size += QSizeF(m_margins.left() + m_margins.right(), m_margins.top() + m_margins.bottom());
	return size;
}
Example #2
0
SEXP qt_qminimumSize_QGraphicsLayoutItem(SEXP ritem)
{
  QGraphicsLayoutItem *item =
    unwrapQGraphicsLayoutItem(ritem, QGraphicsLayoutItem);
  return asRSizeF(item->minimumSize());
}