Keep readonly qualifier

Let's not reformat readonly qualifiers away. They are likely there for a
reason.

Task-number: QTCREATORBUG-15745
Change-Id: Iaab7a8edb47fccd0cf36759750500a93be45bbc2
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Marco Benelli <marco.benelli@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Sune Vuorela
2016-03-29 20:38:33 +02:00
committed by Orgad Shaneh
parent 6655f87fca
commit 55bfa4401f
2 changed files with 7 additions and 0 deletions

View File

@@ -533,6 +533,8 @@ protected:
if (ast->type == UiPublicMember::Property) { if (ast->type == UiPublicMember::Property) {
if (ast->isDefaultMember) if (ast->isDefaultMember)
out("default ", ast->defaultToken); out("default ", ast->defaultToken);
else if (ast->isReadonlyMember)
out("readonly ", ast->readonlyToken);
out("property ", ast->propertyToken); out("property ", ast->propertyToken);
if (!ast->typeModifier.isNull()) { if (!ast->typeModifier.isNull()) {
out(ast->typeModifierToken); out(ast->typeModifierToken);

View File

@@ -0,0 +1,5 @@
import QtQuick 2.0
Item {
readonly property int horse: 40
}