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:
Marco Bubke
2012-04-12 14:04:03 +02:00
parent 9fcae41672
commit 00c6c1fdb6
3 changed files with 33 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ void ComponentNameDialog::go(QString *proposedName,
ComponentNameDialog d(parent);
d.ui->componentNameEdit->setNamespacesEnabled(false);
d.ui->componentNameEdit->setLowerCaseFileName(false);
d.ui->componentNameEdit->setClassNameMustBeCapital(true);
d.ui->componentNameEdit->setForceFirstCapitalLetter(true);
d.ui->componentNameEdit->setText(*proposedName);
d.ui->pathEdit->setExpectedKind(Utils::PathChooser::ExistingDirectory);
d.ui->pathEdit->setPath(*proposedPath);