MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / minimumSize

Method minimumSize

gui/flowlayout.cpp:136–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 }
135
136 QSize FlowLayout::minimumSize() const
137 {
138 QSize size;
139 QLayoutItem *item=NULL;
140 foreach (item, itemList) {
141 if (item->widget()->isVisible())
142 size = size.expandedTo(item->minimumSize());
143 }
144
145 if (item != NULL) {
146 size = item->minimumSize();
147
148 size += QSize(2*margin(), 2*margin());
149 }
150 return size;
151 }
152
153 int FlowLayout::doLayout(const QRect &rect, bool testOnly) const
154 {

Callers 1

foreachFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected