Changeset 7516f6 for src/UIElements/Views/Qt4/QtHomologyList.cpp
- Timestamp:
- Jul 12, 2017, 7:11:51 PM (9 years ago)
- Branches:
- Action_Thermostats, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, AutomationFragmentation_failures, Candidate_v1.6.1, Candidate_v1.7.0, Candidate_v1.7.1, ChemicalSpaceEvaluator, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Exclude_Hydrogens_annealWithBondGraph, Fix_Verbose_Codepatterns, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, Gui_displays_atomic_force_velocity, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, PythonUI_with_named_parameters, Recreated_GuiChecks, StoppableMakroAction, TremoloParser_IncreasedPrecision, stable
- Children:
- 4c6f0d
- Parents:
- b10593
- git-author:
- Frederik Heber <frederik.heber@…> (07/12/17 12:20:23)
- git-committer:
- Frederik Heber <frederik.heber@…> (07/12/17 19:11:51)
- File:
-
- 1 edited
-
src/UIElements/Views/Qt4/QtHomologyList.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/QtHomologyList.cpp
rb10593 r7516f6 108 108 109 109 dirty = true; 110 clearing = false;111 110 112 111 QSettings settings; … … 151 150 } 152 151 153 void QtHomologyList::update(Observable *publisher) {154 152 void QtHomologyList::update(Observable *publisher) 153 { 155 154 dirty = true; 156 155 157 156 // force an update from Qt... 158 // clearing = true;159 157 // treewidget->clear(); 160 // clearing = false;161 158 emit changed(); //doesn't work!?! 162 159 } … … 164 161 void QtHomologyList::refill() 165 162 { 166 clearing = true; 163 boost::recursive_mutex::scoped_lock lock(refill_mutex); 164 167 165 const HomologyContainer &homologies = World::getInstance().getHomologies(); 168 166 … … 290 288 } 291 289 dirty = false; 292 clearing = false;293 290 } 294 291 295 292 void QtHomologyList::paintEvent(QPaintEvent * event) 296 293 { 294 boost::recursive_mutex::scoped_lock lock(refill_mutex); 295 297 296 if (dirty) 298 297 refill(); … … 313 312 void QtHomologyList::rowSelected() 314 313 { 314 boost::recursive_mutex::scoped_lock lock(refill_mutex); 315 315 316 //std::cout << "rowSelected\n"; 316 317 for (int i=0;i<treewidget->topLevelItemCount();i++){
Note:
See TracChangeset
for help on using the changeset viewer.
