Guest User

Untitled

a guest
Mar 17th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. QHash<Collection*, CollectionManager::CollectionStatus> hash = CollectionManager::instance()->allCollections();
  2. QHash<Collection*, CollectionManager::CollectionStatus>::const_iterator it = CollectionManager::instance()->allCollections().constBegin();
  3. while ( it != hash.constEnd() ) {
  4. Collection *coll = it.key();
  5. if( coll && coll->isWritable() && coll != collection )
  6. {
  7. debug() << "got writable collection";
  8. writableCollections.append( coll );
  9. }
  10. ++it;
  11. }
Add Comment
Please, Sign In to add comment