mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-29 15:10:52 +01:00
Implemented TitleBlockTemplatesCollection::templatesLocations() to ease templates collections usage.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1488 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -74,6 +74,19 @@ QETProject *TitleBlockTemplatesCollection::parentProject() {
|
||||
return(0);
|
||||
}
|
||||
|
||||
/**
|
||||
@return the templates contained within this collection, as a list of location
|
||||
objects.
|
||||
@see templates()
|
||||
*/
|
||||
QList<TitleBlockTemplateLocation> TitleBlockTemplatesCollection::templatesLocations() {
|
||||
QList<TitleBlockTemplateLocation> locations;
|
||||
foreach (QString template_name, templates()) {
|
||||
locations << location(template_name);
|
||||
}
|
||||
return(locations);
|
||||
}
|
||||
|
||||
/**
|
||||
Constructor
|
||||
@param project Parent project
|
||||
|
||||
Reference in New Issue
Block a user