forked from qt-creator/qt-creator
Class name validation line edit can now force for capital letters
Qml components should be upper case. Makes the regular expression static. Change-Id: I46650df9b9ae10ceaf3bfb7f888db075f572735b Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
This commit is contained in:
@@ -57,6 +57,9 @@ public:
|
||||
bool lowerCaseFileName() const;
|
||||
void setLowerCaseFileName(bool v);
|
||||
|
||||
bool forceFirstCapitalLetter() const;
|
||||
void setForceFirstCapitalLetter(bool b);
|
||||
|
||||
// Clean an input string to get a valid class name.
|
||||
static QString createClassName(const QString &name);
|
||||
|
||||
@@ -68,6 +71,7 @@ signals:
|
||||
protected:
|
||||
virtual bool validate(const QString &value, QString *errorMessage) const;
|
||||
virtual void slotChanged(const QString &t);
|
||||
virtual QString fixInputString(const QString &string);
|
||||
|
||||
private:
|
||||
ClassNameValidatingLineEditPrivate *d;
|
||||
|
||||
Reference in New Issue
Block a user