forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.3'
Change-Id: I44511e06986b7df6007be7daf7051c895a10794b
This commit is contained in:
@@ -185,37 +185,23 @@ PropertyInfo::PropertyInfo(uint flags)
|
||||
|
||||
QString PropertyInfo::toString() const
|
||||
{
|
||||
bool join = false;
|
||||
QString res;
|
||||
if (isReadable()) {
|
||||
res += QLatin1String("Readable");
|
||||
join = true;
|
||||
}
|
||||
if (isWriteable()) {
|
||||
if (join)
|
||||
res += QLatin1Char('|');
|
||||
res += QLatin1String("Writeable");
|
||||
join = true;
|
||||
}
|
||||
if (isList()) {
|
||||
if (join)
|
||||
res += QLatin1Char('|');
|
||||
res += QLatin1String("ListType");
|
||||
join = true;
|
||||
}
|
||||
if (canBePointer()) {
|
||||
if (join)
|
||||
res += QLatin1Char('|');
|
||||
res += QLatin1String("Pointer");
|
||||
join = true;
|
||||
}
|
||||
if (canBeValue()) {
|
||||
if (join)
|
||||
res += QLatin1Char('|');
|
||||
res += QLatin1String("Value");
|
||||
join = true;
|
||||
}
|
||||
return res;
|
||||
QStringList list;
|
||||
if (isReadable())
|
||||
list.append("Readable");
|
||||
|
||||
if (isWriteable())
|
||||
list.append("Writeable");
|
||||
|
||||
if (isList())
|
||||
list.append("ListType");
|
||||
|
||||
if (canBePointer())
|
||||
list.append("Pointer");
|
||||
|
||||
if (canBeValue())
|
||||
list.append("Value");
|
||||
|
||||
return list.join('|');
|
||||
}
|
||||
|
||||
} // namespace QmlJS
|
||||
|
||||
Reference in New Issue
Block a user