Loading...
Searching...
No Matches
score::QGraphicsValueList Class Referencefinal
Inheritance diagram for score::QGraphicsValueList:
Detailed Description
A list of elements edited in place: each element is a row of spinboxes (or combo boxes for columns with choices). "+" appends a copy of the last row, "x" removes a row, the context menu inserts, duplicates, moves and clears, and "Edit as text" takes the whole list as text ("4 7 10", or rows separated by commas: "4 100, 7 80").
Lists of single numbers flow in lines of itemsPerLine() cells; lists of several columns show one row per element under the column names.
The value is an ossia list: of numbers for one column, of lists otherwise.
Public Member Functions | |
| QGraphicsValueList (QGraphicsItem *parent) | |
| void | setColumns (std::vector< ValueListColumn > cols) |
| const std::vector< ValueListColumn > & | columns () const noexcept |
| void | setCountRange (int min, int max) |
| void | setItemsPerLine (int n) |
| void | setValue (const ossia::value &v) |
| ossia::value | value () const |
| QString | toText () const |
| bool | setText (const QString &text) |
| False, and the list unchanged, when the text does not parse. | |
| void | editAsText () |
| Opens the text editor for the whole list. | |
| QRectF | boundingRect () const override |
| void | sliderMoved () |
| A cell is being dragged: the value changes continuously. | |
| void | sliderReleased () |
| The drag ended. | |
| void | edited () |
| Rows were added, removed, moved, or the text was edited: one edit. | |
| void | sizeChanged (QSizeF sz) |
Public Attributes | |
| bool | moving = false |
The documentation for this class was generated from the following files:
- QGraphicsValueList.hpp
- QGraphicsValueList.cpp