| 1026 | } |
| 1027 | |
| 1028 | bool InfoElementPrivate::changeVisibility(bool on) { |
| 1029 | bool oldValue = isVisible(); |
| 1030 | setVisible(on); |
| 1031 | for (auto& markerpoint : q->markerpoints) |
| 1032 | markerpoint.customPoint->setVisible(on); |
| 1033 | if (q->m_title) { |
| 1034 | q->m_title->setUndoAware(false); |
| 1035 | q->m_title->setVisible(on); |
| 1036 | q->m_title->setUndoAware(true); |
| 1037 | } |
| 1038 | update(boundingRect()); |
| 1039 | return oldValue; |
| 1040 | } |
| 1041 | |
| 1042 | void InfoElementPrivate::paint(QPainter* painter, const QStyleOptionGraphicsItem*, QWidget*) { |
| 1043 | if (!insidePlot || !valid) |
nothing calls this directly
no test coverage detected