mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
The application now avoids reading and keeping in memory every element file in the collection.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1366 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -25,7 +25,8 @@
|
||||
@param parent Item parent
|
||||
*/
|
||||
ElementsCollection::ElementsCollection(ElementsCollectionItem *parent) :
|
||||
ElementsCollectionItem(parent)
|
||||
ElementsCollectionItem(parent),
|
||||
cache_(0)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -414,3 +415,16 @@ ElementsCollectionItem *ElementsCollection::item(const QString &item_path, bool
|
||||
return(result);
|
||||
}
|
||||
|
||||
/**
|
||||
@return The cache used by this collection, or 0 if this collection does not have any
|
||||
*/
|
||||
ElementsCollectionCache *ElementsCollection::cache() const {
|
||||
return(cache_);
|
||||
}
|
||||
|
||||
/**
|
||||
@param cache The cache to be used by this collection
|
||||
*/
|
||||
void ElementsCollection::setCache(ElementsCollectionCache *cache) {
|
||||
cache_ = cache;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user