mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 22:00:35 +01:00
Title block templates variables names now accept digits.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1294 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -68,6 +68,6 @@ bool DiagramContext::operator!=(const DiagramContext &dc) const {
|
|||||||
@return true if that key is acceptable, false otherwise
|
@return true if that key is acceptable, false otherwise
|
||||||
*/
|
*/
|
||||||
bool DiagramContext::keyIsAcceptable(const QString &key) const {
|
bool DiagramContext::keyIsAcceptable(const QString &key) const {
|
||||||
static QRegExp re("^[a-z-]+$");
|
static QRegExp re("^[a-z0-9-]+$");
|
||||||
return(re.exactMatch(key));
|
return(re.exactMatch(key));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user