Changeset 42824 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 15, 2012 1:30:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r42748 r42824 177 177 /** Constructs a regular enum event */ 178 178 VBoxMediaEnumEvent (const UIMedium &aMedium, 179 VBoxMediaList::iterator &aIterator)179 const VBoxMediaList::iterator &aIterator) 180 180 : QEvent ((QEvent::Type) MediaEnumEventType) 181 181 , mMedium (aMedium), mIterator (aIterator), mLast (false) 182 182 {} 183 183 /** Constructs the last enum event */ 184 VBoxMediaEnumEvent ( VBoxMediaList::iterator &aIterator)184 VBoxMediaEnumEvent (const VBoxMediaList::iterator &aIterator) 185 185 : QEvent ((QEvent::Type) MediaEnumEventType) 186 186 , mIterator (aIterator), mLast (true) … … 189 189 /** Last enumerated medium (not valid when #last is true) */ 190 190 const UIMedium mMedium; 191 /** Opaque iterator provided by the event sender (guaranteed to be 192 * the same variable for all media in the single enumeration procedure) */ 193 VBoxMediaList::iterator &mIterator; 191 /* Iterator which points to the corresponding item in the GUI thread: */ 192 const VBoxMediaList::iterator mIterator; 194 193 /** Whether this is the last event for the given enumeration or not */ 195 194 const bool mLast; … … 2013 2012 postEvent (self, 2014 2013 new VBoxMediaEnumEvent (mVector [i], mSavedIt)); 2014 ++mSavedIt; 2015 2015 } 2016 2016 … … 4024 4024 *(ev->mIterator) = ev->mMedium; 4025 4025 emit mediumEnumerated (*ev->mIterator); 4026 ++ ev->mIterator;4027 4026 } 4028 4027 else
Note:
See TracChangeset
for help on using the changeset viewer.