diff --git a/sources/qetapp.cpp b/sources/qetapp.cpp index cbc457fd5..f16cffc1a 100644 --- a/sources/qetapp.cpp +++ b/sources/qetapp.cpp @@ -296,6 +296,13 @@ QList QETApp::availableCollections() { return(coll_list); } +/** + @return the collection cache provided by the application itself. +*/ +ElementsCollectionCache *QETApp::collectionCache() { + return(collections_cache_); +} + /** @return the common title block templates collection, i.e. the one provided by QElecrotTech diff --git a/sources/qetapp.h b/sources/qetapp.h index a0d04336f..bcd2e6720 100644 --- a/sources/qetapp.h +++ b/sources/qetapp.h @@ -72,6 +72,7 @@ class QETApp : public QETSingleApplication { static ElementsCollection *commonElementsCollection(); static ElementsCollection *customElementsCollection(); static QList availableCollections(); + static ElementsCollectionCache *collectionCache(); static TitleBlockTemplatesFilesCollection *commonTitleBlockTemplatesCollection(); static TitleBlockTemplatesFilesCollection *customTitleBlockTemplatesCollection();