"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/backend/core/aspectcommands.h" between
labplot-2.8.1.tar.gz and labplot-2.8.2.tar.gz

About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.

aspectcommands.h  (labplot-2.8.1):aspectcommands.h  (labplot-2.8.2)
skipping to change at line 60 skipping to change at line 60
// calling redo transfers ownership of m_child to the undo command // calling redo transfers ownership of m_child to the undo command
void redo() override { void redo() override {
AbstractAspect* nextSibling; AbstractAspect* nextSibling;
if (m_child == m_target->m_children.last()) if (m_child == m_target->m_children.last())
nextSibling = nullptr; nextSibling = nullptr;
else else
nextSibling = m_target->m_children.at(m_target->indexOfCh ild(m_child) + 1); nextSibling = m_target->m_children.at(m_target->indexOfCh ild(m_child) + 1);
emit m_target->q->aspectAboutToBeRemoved(m_child); emit m_target->q->aspectAboutToBeRemoved(m_child);
//emit the "about to be removed" signal also for all children of
the aspect being currently removed
for (auto* child : m_child->children<AbstractAspect>(AbstractAspe
ct::ChildIndexFlag::Recursive | AbstractAspect::ChildIndexFlag::IncludeHidden))
m_child->aspectAboutToBeRemoved(child);
m_index = m_target->removeChild(m_child); m_index = m_target->removeChild(m_child);
emit m_target->q->aspectRemoved(m_target->q, nextSibling, m_child ); emit m_target->q->aspectRemoved(m_target->q, nextSibling, m_child );
// m_removed = true; // m_removed = true;
} }
// calling undo transfers ownership of m_child back to its parent aspect // calling undo transfers ownership of m_child back to its parent aspect
void undo() override { void undo() override {
Q_ASSERT(m_index != -1); // m_child must be a child of m_target-> q Q_ASSERT(m_index != -1); // m_child must be a child of m_target-> q
emit m_target->q->aspectAboutToBeAdded(m_target->q, nullptr, m_ch ild); emit m_target->q->aspectAboutToBeAdded(m_target->q, nullptr, m_ch ild);
 End of changes. 1 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)