Text annotation

This commit is contained in:
Jakub Melka
2020-03-22 18:19:52 +01:00
parent fcaa288c5b
commit 35ffc256f3
7 changed files with 814 additions and 4 deletions

View File

@ -1209,7 +1209,10 @@ void GeneratedPDFObject::generateSourceCodeImpl(QTextStream& stream, CodeGenerat
if (pass == Pass::Enter)
{
stream << indent << "objectBuilder.beginArray();" << Qt::endl;
stream << indent << writeTo << getValue().trimmed() << ";" << Qt::endl;
for (const QString& arrayPart : getValue().trimmed().split(";"))
{
stream << indent << writeTo << arrayPart << ";" << Qt::endl;
}
stream << indent << "objectBuilder.endArray();" << Qt::endl;
}
break;

View File

@ -144,7 +144,8 @@ public:
_QPointF,
_QRectF,
_QColor,
_QVariant
_QVariant,
_TextAnnotationIcon
};
Q_ENUM(DataType)