"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/commonfrontend/ProjectExplorer.cpp" 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.

ProjectExplorer.cpp  (labplot-2.8.1):ProjectExplorer.cpp  (labplot-2.8.2)
skipping to change at line 220 skipping to change at line 220
} }
} }
if (menu) if (menu)
menu->exec(event->globalPos()); menu->exec(event->globalPos());
delete menu; delete menu;
} }
void ProjectExplorer::setCurrentAspect(const AbstractAspect* aspect) { void ProjectExplorer::setCurrentAspect(const AbstractAspect* aspect) {
//HACK: when doing redo/undo in MainWin and an object is being deleted,
//we don't want to jump to another object in the project explorer.
//we reuse the aspectAddedSignalSuppressed also for the deletion of aspec
ts.
if (m_project->aspectAddedSignalSuppressed())
return;
const AspectTreeModel* tree_model = qobject_cast<AspectTreeModel*>(m_tree View->model()); const AspectTreeModel* tree_model = qobject_cast<AspectTreeModel*>(m_tree View->model());
if (tree_model) if (tree_model)
m_treeView->setCurrentIndex(tree_model->modelIndexOfAspect(aspect )); m_treeView->setCurrentIndex(tree_model->modelIndexOfAspect(aspect ));
} }
/*! /*!
Sets the \c model for the tree view to present. Sets the \c model for the tree view to present.
*/ */
void ProjectExplorer::setModel(AspectTreeModel* treeModel) { void ProjectExplorer::setModel(AspectTreeModel* treeModel) {
m_treeView->setModel(treeModel); m_treeView->setModel(treeModel);
 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)