mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +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(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
|
Constructor
|
||||||
@param project Parent project
|
@param project Parent project
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ class TitleBlockTemplatesCollection : public QObject {
|
|||||||
virtual QString protocol() const;
|
virtual QString protocol() const;
|
||||||
virtual void setProtocol(const QString &);
|
virtual void setProtocol(const QString &);
|
||||||
virtual QETProject *parentProject();
|
virtual QETProject *parentProject();
|
||||||
|
virtual QList<TitleBlockTemplateLocation> templatesLocations();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void changed(TitleBlockTemplatesCollection *, const QString & = QString());
|
void changed(TitleBlockTemplatesCollection *, const QString & = QString());
|
||||||
|
|||||||
Reference in New Issue
Block a user