diff options
author | Sergey Shambir <sergey.shambir.auto@gmail.com> | 2013-01-15 01:09:45 +0400 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2013-01-15 11:29:41 +0100 |
commit | 2151e763e4921fdd1e2dbfc8278679dcfd87e22b (patch) | |
tree | 6b2f596f846ecfe464bc9e2c3f9dbd4c44a25490 /src/libs/utils/classnamevalidatinglineedit.h | |
parent | 931627e86c3022405204d4c023fe9e6892e95556 (diff) | |
download | qt-creator-2151e763e4921fdd1e2dbfc8278679dcfd87e22b.tar.gz |
Utils: refactored ClassNameValidatingLineEdit
Now this class can accept '.' namespaces delimiter, which is used in
python. Changed behavior a bit: if namespaces disabled, error message
for 'Namespace:Widget' now is 'The class name contains invalid
characters' instead of 'The class name must not contain namespace
delimiters'. Error message for 'Namespace::Widget' not changed.
Change-Id: I45283ca2002957552375419f1cf3137632dcacdb
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/libs/utils/classnamevalidatinglineedit.h')
-rw-r--r-- | src/libs/utils/classnamevalidatinglineedit.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libs/utils/classnamevalidatinglineedit.h b/src/libs/utils/classnamevalidatinglineedit.h index 05af35170f..abf1a52523 100644 --- a/src/libs/utils/classnamevalidatinglineedit.h +++ b/src/libs/utils/classnamevalidatinglineedit.h @@ -51,6 +51,9 @@ public: bool namespacesEnabled() const; void setNamespacesEnabled(bool b); + QString namespaceDelimiter(); + void setNamespaceDelimiter(const QString &delimiter); + bool lowerCaseFileName() const; void setLowerCaseFileName(bool v); @@ -71,6 +74,8 @@ protected: virtual QString fixInputString(const QString &string); private: + void updateRegExp() const; + ClassNameValidatingLineEditPrivate *d; }; |