The user can now specify his own name/value pairs at three levels:

* user configuration level (qelectrotech.conf): default configuration for new projects
  * project level (.qet file): default configuration for new diagrams
  * diagram level (title block properties): names and values may be used by the title block template


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1142 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2011-01-09 15:16:51 +00:00
parent 3b07252a9a
commit 134b3ba83e
9 changed files with 277 additions and 98 deletions

View File

@@ -55,6 +55,14 @@ bool DiagramContext::addValue(const QString &key, const QVariant &value) {
return(false);
}
bool DiagramContext::operator==(const DiagramContext &dc) const {
return(content_ == dc.content_);
}
bool DiagramContext::operator!=(const DiagramContext &dc) const {
return(!(*this == dc));
}
/**
@param key a key string
@return true if that key is acceptable, false otherwise