31 collection_(collection),
84 return(!
name_.isEmpty());
93 QRegExp name_from_url(
"^[^:]*:\\/\\/(.*)$");
94 if (name_from_url.exactMatch(loc_str)) {
95 name_ = name_from_url.capturedTexts().at(1);
TitleBlockTemplatesCollection * collection_
Collection the template belongs to.
void setName(const QString &)
QDomElement getTemplateXmlDescription() const
QString name_
Name of the template.
virtual ~TitleBlockTemplateLocation()
void fromString(const QString &)
TitleBlockTemplateLocation locationFromString(const QString &)
QETProject * parentProject() const
static TitleBlockTemplatesCollection * titleBlockTemplatesCollection(const QString &)
void setParentCollection(TitleBlockTemplatesCollection *)
TitleBlockTemplatesCollection * parentCollection() const
static int MetaTypeId
Id of the corresponding Qt meta type.
TitleBlockTemplate * getTemplate() const
uint qHash(const TitleBlockTemplateLocation &location)
bool operator==(const TitleBlockTemplateLocation &) const
TitleBlockTemplateLocation(const QString &=QString(), TitleBlockTemplatesCollection *=nullptr)