! * \internal */
| 1402 | * \internal |
| 1403 | */ |
| 1404 | QString Format::stringProperty(int propertyId, const QString &defaultValue) const |
| 1405 | { |
| 1406 | if (!hasProperty(propertyId)) |
| 1407 | return defaultValue; |
| 1408 | |
| 1409 | const QVariant prop = d->properties[propertyId]; |
| 1410 | if (prop.userType() != QMetaType::QString) |
| 1411 | return defaultValue; |
| 1412 | return prop.toString(); |
| 1413 | } |
| 1414 | |
| 1415 | /*! |
| 1416 | * \internal |
no test coverage detected