MCPcopy Create free account
hub / github.com/KDE/labplot / changeVisibility

Method changeVisibility

src/backend/worksheet/InfoElement.cpp:1028–1040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1026}
1027
1028bool 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
1042void InfoElementPrivate::paint(QPainter* painter, const QStyleOptionGraphicsItem*, QWidget*) {
1043 if (!insidePlot || !valid)

Callers

nothing calls this directly

Calls 2

setUndoAwareMethod · 0.80
setVisibleMethod · 0.45

Tested by

no test coverage detected