MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / minimumSize

Method minimumSize

pj_widgets/src/FlowLayout.cpp:76–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76QSize FlowLayout::minimumSize() const {
77 QSize size;
78 for (const QLayoutItem* item : items_) {
79 size = size.expandedTo(item->minimumSize());
80 }
81 const QMargins margins = contentsMargins();
82 return size + QSize(margins.left() + margins.right(), margins.top() + margins.bottom());
83}
84
85int FlowLayout::doLayout(const QRect& rect, bool test_only) const {
86 const QMargins margins = contentsMargins();

Callers 1

TESTFunction · 0.45

Calls 1

QSizeClass · 0.50

Tested by 1

TESTFunction · 0.36