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

Method redo

src/backend/worksheet/WorksheetElement.cpp:680–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678 }
679
680 virtual void redo() override {
681 const auto oldIndex = m_element->m_cSystemIndex;
682 m_element->m_cSystemIndex = m_index;
683 if (m_element->plot())
684 m_element->cSystem = dynamic_cast<const CartesianCoordinateSystem*>(m_element->plot()->coordinateSystem(m_index));
685 else
686 DEBUG(Q_FUNC_INFO << ", WARNING: No plot found. Failed setting csystem index.")
687
688 m_index = oldIndex;
689 m_element->retransform();
690 Q_EMIT m_element->coordinateSystemIndexChanged(m_element->m_cSystemIndex);
691 }
692
693 virtual void undo() override {
694 redo();

Callers

nothing calls this directly

Calls 3

plotMethod · 0.45
coordinateSystemMethod · 0.45
retransformMethod · 0.45

Tested by

no test coverage detected