mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-02 01:40:52 +01:00
The panel now highlights unused title block templates.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1477 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -153,3 +153,12 @@ bool TitleBlockTemplateLocation::isReadOnly() const {
|
||||
if (!collection_) return(false);
|
||||
return(collection_ -> isReadOnly(name_));
|
||||
}
|
||||
|
||||
/**
|
||||
@param location other location that should be compared to this one
|
||||
@return true if locations are equal, false otherwise
|
||||
*/
|
||||
bool TitleBlockTemplateLocation::operator==(const TitleBlockTemplateLocation &location) const {
|
||||
return(location.collection_ == collection_ && location.name_ == name_);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ class TitleBlockTemplateLocation {
|
||||
QDomElement getTemplateXmlDescription() const;
|
||||
TitleBlockTemplate *getTemplate() const;
|
||||
bool isReadOnly() const;
|
||||
bool operator==(const TitleBlockTemplateLocation &) const;
|
||||
|
||||
// attributes
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user