MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / setFillOrder

Method setFillOrder

3rdparty/qcustomplot/qcustomplot.cpp:4402–4425  ·  view source on GitHub ↗

! Sets the filling order and wrapping behaviour that is used when adding new elements with the method \ref addElement(QCPLayoutElement*). The specified \a order defines whether rows or columns are filled first. Using \ref setWrap, you can control at which row/column count wrapping into the next column/row will occur. If you set it to zero, no wrapping will ever occur. Changing the fill

Source from the content-addressed store, hash-verified

4400 \see setWrap, addElement(QCPLayoutElement*)
4401*/
4402void QCPLayoutGrid::setFillOrder(FillOrder order, bool rearrange)
4403{
4404 // if rearranging, take all elements via linear index of old fill order:
4405 const int elCount = elementCount();
4406 QVector<QCPLayoutElement*> tempElements;
4407 if (rearrange)
4408 {
4409 tempElements.reserve(elCount);
4410 for (int i=0; i<elCount; ++i)
4411 {
4412 if (elementAt(i))
4413 tempElements.append(takeAt(i));
4414 }
4415 simplify();
4416 }
4417 // change fill order as requested:
4418 mFillOrder = order;
4419 // if rearranging, re-insert via linear index according to new fill order:
4420 if (rearrange)
4421 {
4422 foreach (QCPLayoutElement *tempElement, tempElements)
4423 addElement(tempElement);
4424 }
4425}
4426
4427/*!
4428 Expands the layout to have \a newRowCount rows and \a newColumnCount columns. So the last valid

Callers

nothing calls this directly

Calls 3

elementCountFunction · 0.85
appendMethod · 0.80
reserveMethod · 0.45

Tested by

no test coverage detected