forked from qt-creator/qt-creator
QML/JS Editor: Fix UI text
Task-number: QTCREATORBUG-25915 Change-Id: I96da82dee989cc1833e1219f33cbee072df19f83 Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
This commit is contained in:
@@ -163,13 +163,13 @@ QString ComponentNameDialog::isValid() const
|
|||||||
|
|
||||||
QString compName = ui->componentNameEdit->text();
|
QString compName = ui->componentNameEdit->text();
|
||||||
if (compName.isEmpty() || !compName[0].isUpper())
|
if (compName.isEmpty() || !compName[0].isUpper())
|
||||||
return tr("Invalid component name");
|
return tr("Invalid component name.");
|
||||||
|
|
||||||
if (!ui->pathEdit->isValid())
|
if (!ui->pathEdit->isValid())
|
||||||
return tr("Invalid path");
|
return tr("Invalid path.");
|
||||||
|
|
||||||
if (QDir(ui->pathEdit->path()).exists(compName + u".qml"))
|
if (QDir(ui->pathEdit->path()).exists(compName + u".qml"))
|
||||||
return tr("Component already exists");
|
return tr("Component already exists.");
|
||||||
|
|
||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user