forked from qt-creator/qt-creator
QtQuickDesigner: Add punctuation to the end of error messages
Change-Id: I7a7ebf343860e887c10be044cbe6930ffe13dd59 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -95,7 +95,7 @@ void MetaInfoReader::elementStart(const QString &name)
|
||||
case ParsingHints:
|
||||
case Finished:
|
||||
case Undefined: setParserState(Error);
|
||||
addError(tr("Illegal state while parsing"), currentSourceLocation());
|
||||
addError(tr("Illegal state while parsing."), currentSourceLocation());
|
||||
case Error:
|
||||
default: return;
|
||||
}
|
||||
@@ -113,7 +113,7 @@ void MetaInfoReader::elementEnd()
|
||||
case ParsingDocument:
|
||||
case Finished:
|
||||
case Undefined: setParserState(Error);
|
||||
addError(tr("Illegal state while parsing"), currentSourceLocation());
|
||||
addError(tr("Illegal state while parsing."), currentSourceLocation());
|
||||
case Error:
|
||||
default: return;
|
||||
}
|
||||
@@ -126,12 +126,12 @@ void MetaInfoReader::propertyDefinition(const QString &name, const QVariant &val
|
||||
case ParsingItemLibrary: readItemLibraryEntryProperty(name, value); break;
|
||||
case ParsingProperty: readPropertyProperty(name, value); break;
|
||||
case ParsingQmlSource: readQmlSourceProperty(name, value); break;
|
||||
case ParsingMetaInfo: addError(tr("No property definition allowed"), currentSourceLocation()); break;
|
||||
case ParsingMetaInfo: addError(tr("No property definition allowed."), currentSourceLocation()); break;
|
||||
case ParsingDocument:
|
||||
case ParsingHints: readHint(name, value); break;
|
||||
case Finished:
|
||||
case Undefined: setParserState(Error);
|
||||
addError(tr("Illegal state while parsing"), currentSourceLocation());
|
||||
addError(tr("Illegal state while parsing."), currentSourceLocation());
|
||||
case Error:
|
||||
default: return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user