mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-30 07:40:51 +01:00
Allow user to select common or custom title block as default title block for a new project / diagram in project
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3912 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -66,6 +66,23 @@ void TitleBlockTemplatesCollection::setProtocol(const QString &protocol) {
|
||||
if (!protocol.isEmpty()) protocol_ = protocol;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief TitleBlockTemplatesCollection::collection
|
||||
* @return the collection where is stored this collection.
|
||||
*/
|
||||
QET::QetCollection TitleBlockTemplatesCollection::collection() const {
|
||||
return m_collection;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief TitleBlockTemplatesCollection::setCollection
|
||||
* Set the storage of this collection
|
||||
* @param c
|
||||
*/
|
||||
void TitleBlockTemplatesCollection::setCollection(QET::QetCollection c) {
|
||||
m_collection = c;
|
||||
}
|
||||
|
||||
/**
|
||||
@return the project this collection is affiliated to, or 0 if this
|
||||
collection is not related to any project.
|
||||
@@ -96,6 +113,7 @@ TitleBlockTemplatesProjectCollection::TitleBlockTemplatesProjectCollection(QETPr
|
||||
TitleBlockTemplatesCollection(parent),
|
||||
project_(project)
|
||||
{
|
||||
m_collection = QET::QetCollection::Embendded;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user