Changeset 7516f6 for src/UIElements/Views/Qt4/QtStatusBar.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/QtStatusBar.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/QtStatusBar.cpp
rb10593 r7516f6 99 99 } 100 100 101 void QtStatusBar::update(Observable *subject){ 101 void QtStatusBar::paintEvent(QPaintEvent * event) 102 { 103 boost::recursive_mutex::scoped_lock lock(refill_mutex); 104 105 QStatusBar::paintEvent(event); 106 } 107 108 void QtStatusBar::update(Observable *subject) 109 { 102 110 if (subject == World::getPointer()){ 103 111 atomCount = World::getInstance().numAtoms(); … … 133 141 void QtStatusBar::updateStatusMessage() 134 142 { 143 boost::recursive_mutex::scoped_lock lock(refill_mutex); 144 135 145 if (StatusList.size() != 0) { 136 146 // get oldest message from the StatusList … … 177 187 } 178 188 179 void QtStatusBar::redrawStatus(){ 189 void QtStatusBar::redrawStatus() 190 { 191 boost::recursive_mutex::scoped_lock lock(refill_mutex); 192 180 193 stringstream sstr; 181 194 sstr << "You have " << atomCount << " atom" << PLURAL_S(atomCount) … … 190 203 const bool StopStatus) 191 204 { 205 boost::recursive_mutex::scoped_lock lock(refill_mutex); 206 192 207 progressIndicator *ind=0; 193 208 progressBars_t::iterator iter = progressBars.find(name); … … 216 231 217 232 218 QtStatusBar::progressIndicator::progressIndicator(const std::string &name){ 233 QtStatusBar::progressIndicator::progressIndicator(const std::string &name) 234 { 219 235 stringstream sstr; 220 236 sstr << "Busy (" << name << ")";
Note:
See TracChangeset
for help on using the changeset viewer.
