e7ceebd867
* LegendItem: fix spelling mistake * LegendItem: remove unused curRow variable * LegendItem: correct calculation of rowCount Previously, rowCount would never be updated unless setColumnCount() was called. This fixes that issue. It also fixes that setColumnCount() rounded down (floored) the number of rows, instead of providing an accurate number: e.g. 4 items in 3 columns would yield rowCount=1, when it should be 2 * LegendItem: remove rowCount argument (not implemented) Logic to actually use the rowCount argument was not implemented. Users might expect rowCount to limit the number of rows to e.g. 1, but that is not what the current code does (it only works with limiting the number of columns). Thus, we were exposing an unused/misleading parameter to users. This can and should be reverted if the logic for limiting the number of rows is added. * LegendItem: add colCount docs * test (LegendItem): remove unused curRow variable * test (LegendItem): check increasing rowCount as add items * Fixed logic in placement of items in legend with multiple columns * Actual row count here should be 2, not 3 Co-authored-by: Ogi Moore <ognyan.moore@gmail.com> |
||
---|---|---|
.. | ||
canvas | ||
colors/maps | ||
console | ||
dockarea | ||
exporters | ||
flowchart | ||
graphicsItems | ||
GraphicsScene | ||
icons | ||
imageview | ||
metaarray | ||
multiprocess | ||
opengl | ||
parametertree | ||
tests | ||
util | ||
widgets | ||
__init__.py | ||
colormap.py | ||
configfile.py | ||
debug.py | ||
exceptionHandling.py | ||
frozenSupport.py | ||
functions.py | ||
graphicsWindows.py | ||
ordereddict.py | ||
pgcollections.py | ||
PlotData.py | ||
Point.py | ||
ptime.py | ||
python2_3.py | ||
Qt.py | ||
reload.py | ||
SignalProxy.py | ||
SRTTransform3D.py | ||
SRTTransform.py | ||
ThreadsafeTimer.py | ||
Transform3D.py | ||
units.py | ||
Vector.py | ||
WidgetGroup.py |