Changeset 7516f6 for src/UIElements/Views/Qt4/QtShapeList.cpp
- Timestamp:
- Jul 12, 2017, 7:11:51 PM (8 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/QtShapeList.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/QtShapeList.cpp
rb10593 r7516f6 65 65 setHeaderLabels(header); 66 66 67 clearing = false;68 67 selecting = false; 69 68 … … 114 113 } 115 114 116 void QtShapeList::refill(::Shape *ignore) { 115 void QtShapeList::refill(::Shape *ignore) 116 { 117 boost::recursive_mutex::scoped_lock lock(refill_mutex); 117 118 118 clearing = true;119 119 clear(); 120 120 shapeSelection.clear(); … … 138 138 shapeSelection.push_back(reg.isSelected(s)); 139 139 } 140 clearing = false;141 140 } 142 141 143 #if 0144 142 void QtShapeList::paintEvent(QPaintEvent * event) 145 143 { 144 boost::recursive_mutex::scoped_lock lock(refill_mutex); 146 145 /*if (dirty) 147 146 refill();*/ 148 Q tShapeList::paintEvent(event);147 QTreeWidget::paintEvent(event); 149 148 } 150 #endif151 149 152 150 void QtShapeList::subjectKilled(Observable *publisher) { … … 156 154 void QtShapeList::rowSelected() 157 155 { 158 if (clearing)159 return; 156 boost::recursive_mutex::scoped_lock lock(refill_mutex); 157 160 158 if (selecting) 161 159 return;
Note:
See TracChangeset
for help on using the changeset viewer.
