! * Returns the value of the document's \a key property. */
| 1044 | * Returns the value of the document's \a key property. |
| 1045 | */ |
| 1046 | QString Document::documentProperty(const QString &key) const |
| 1047 | { |
| 1048 | Q_D(const Document); |
| 1049 | auto it = d->documentProperties.constFind(key); |
| 1050 | if (it != d->documentProperties.constEnd()) |
| 1051 | return it.value(); |
| 1052 | else |
| 1053 | return QString(); |
| 1054 | } |
| 1055 | |
| 1056 | /*! |
| 1057 | Set the document properties such as Title, Author etc. |
no test coverage detected