! Returns a list of the selected items. If no items are currently selected, the list is empty. \see setInteractions, QCPAbstractItem::setSelectable, QCPAbstractItem::setSelected */
| 14618 | \see setInteractions, QCPAbstractItem::setSelectable, QCPAbstractItem::setSelected |
| 14619 | */ |
| 14620 | QList<QCPAbstractItem*> QCustomPlot::selectedItems() const |
| 14621 | { |
| 14622 | QList<QCPAbstractItem*> result; |
| 14623 | foreach (QCPAbstractItem *item, mItems) |
| 14624 | { |
| 14625 | if (item->selected()) |
| 14626 | result.append(item); |
| 14627 | } |
| 14628 | return result; |
| 14629 | } |
| 14630 | |
| 14631 | /*! |
| 14632 | Returns the item at the pixel position \a pos. Since it can capture all items, the |
no test coverage detected