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:
xavier
2012-02-05 19:33:11 +00:00
parent 7d4b90ca3a
commit 6b8506c61e
2 changed files with 14 additions and 0 deletions

View File

@@ -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