Minor improvements in the TitleBlockTemplateLocation class.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1469 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-01-18 19:53:27 +00:00
parent aa0a83e0d6
commit 156867a380
2 changed files with 17 additions and 0 deletions

View File

@@ -19,6 +19,9 @@
#include "templatescollection.h"
#include "qetapp.h"
// make this class usable with QVariant
int t = qRegisterMetaType<TitleBlockTemplateLocation>("TitleBlockTemplateLocation");
/**
Constructor
@param collection Parent collection of the title block template
@@ -124,6 +127,15 @@ QString TitleBlockTemplateLocation::protocol() const {
return("unknown");
}
/**
This is a convenience method equivalent to
parentCollection() -> getTemplateXmlDescription
*/
QDomElement TitleBlockTemplateLocation::getTemplateXmlDescription() const {
if (!collection_ || name_.isEmpty()) return(QDomElement());
return(collection_ -> getTemplateXmlDescription(name_));
}
/**
This is a convenience method equivalent to
parentCollection() -> getTemplate(...).