Mercurial > projects > qtd
comparison tools/duic/d/dwriteinitialization.cpp @ 83:c64698c80409
duic: apply cursor.patch from denis.
author | SokoL_SD |
---|---|
date | Sun, 24 May 2009 18:26:11 +0000 |
parents | 420f2aab9ab6 |
children | 2edf95ad41e5 |
comparison
equal
deleted
inserted
replaced
82:420f2aab9ab6 | 83:c64698c80409 |
---|---|
1159 propertyValue += QLatin1Char(')'); | 1159 propertyValue += QLatin1Char(')'); |
1160 } | 1160 } |
1161 } | 1161 } |
1162 break; | 1162 break; |
1163 case DomProperty::Cursor: | 1163 case DomProperty::Cursor: |
1164 propertyValue = QString::fromLatin1("QCursor(cast(Qt.CursorShape)(%1))") | 1164 propertyValue = QString::fromLatin1("new QCursor(cast(Qt.CursorShape)(%1))") |
1165 .arg(p->elementCursor()); | 1165 .arg(p->elementCursor()); |
1166 break; | 1166 break; |
1167 case DomProperty::CursorShape: | 1167 case DomProperty::CursorShape: |
1168 if (p->hasAttributeStdset() && !p->attributeStdset()) | 1168 if (p->hasAttributeStdset() && !p->attributeStdset()) |
1169 varNewName += QLatin1String(".viewport()"); | 1169 varNewName += QLatin1String(".viewport()"); |
1170 propertyValue = QString::fromLatin1("QCursor(Qt.%1)") | 1170 propertyValue = QString::fromLatin1("new QCursor(Qt.%1)") |
1171 .arg(p->elementCursorShape()); | 1171 .arg(p->elementCursorShape()); |
1172 break; | 1172 break; |
1173 case DomProperty::Enum: | 1173 case DomProperty::Enum: |
1174 propertyValue = p->elementEnum(); | 1174 propertyValue = p->elementEnum(); |
1175 if (!propertyValue.contains(QLatin1String("::"))) { | 1175 if (!propertyValue.contains(QLatin1String("::"))) { |