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:
xavier
2011-06-04 12:44:17 +00:00
parent 9049809ac1
commit bf348a42d0

View File

@@ -68,6 +68,6 @@ bool DiagramContext::operator!=(const DiagramContext &dc) const {
@return true if that key is acceptable, false otherwise
*/
bool DiagramContext::keyIsAcceptable(const QString &key) const {
static QRegExp re("^[a-z-]+$");
static QRegExp re("^[a-z0-9-]+$");
return(re.exactMatch(key));
}