Changeset b1bb35
- Timestamp:
- Sep 1, 2016, 10:09:00 PM (9 years ago)
- Branches:
- Gui_Fixes
- Children:
- e03e9f
- Parents:
- c40e1f8
- Location:
- src/UIElements/Views/Qt4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/QtFragmentList.cpp
rc40e1f8 rb1bb35 73 73 74 74 dirty = true; 75 clearing = false;76 75 77 76 refill(); … … 93 92 94 93 void QtFragmentList::update(Observable *publisher) { 95 94 boost::unique_lock<boost::mutex> lock(flag_mutex); 96 95 dirty = true; 97 98 // force an update from Qt...99 clearing = true;100 clear();101 clearing = false;102 emit changed(); // doesn't work!?!103 96 } 104 97 105 98 void QtFragmentList::refill() 106 99 { 107 clearing = true;100 boost::unique_lock<boost::mutex> lock(flag_mutex); 108 101 FragmentationResultContainer &fragments = 109 102 FragmentationResultContainer::getInstance(); … … 177 170 } 178 171 dirty = false; 179 clearing = false;180 172 } 181 173 -
src/UIElements/Views/Qt4/QtFragmentList.hpp
rc40e1f8 rb1bb35 14 14 #endif 15 15 16 17 16 #include <QtGui/QTreeWidget> 18 17 #include "CodePatterns/Observer/Observer.hpp" 19 18 19 #include <boost/thread/mutex.hpp> 20 20 21 #include "Fragmentation/Summation/IndexSet.hpp" 22 21 23 22 24 class FragmentGraph; … … 53 55 //!> index set of the fragment 54 56 std::vector<IndexSet> indexsets; 57 //!> controls atomic access to flags 58 boost::mutex flag_mutex; 55 59 //!> flag to indicate that we got an update 56 60 bool dirty; 57 //!> flag to indicate that we currently clear the view, avoids thread collisions58 bool clearing;59 61 }; 60 62
Note:
See TracChangeset
for help on using the changeset viewer.