content.setAttribute("font-underline", font.underline());
content.setAttribute("font-color", colorToString(t->defaultTextColor()));
+ if (!t->data(100).isNull()) {
+ QStringList effectParams = t->data(100).toStringList();
+ QString effectName = effectParams.takeFirst();
+ content.setAttribute(effectName, effectParams.join(";"));
+ }
+
// Only save when necessary.
if (t->data(OriginXLeft).toInt() == AxisInverted) {
content.setAttribute("kdenlive-axis-x-inverted", t->data(OriginXLeft).toInt());
txt->setData(OriginYTop, txtProperties.namedItem("kdenlive-axis-y-inverted").nodeValue().toInt());
}
+ // Effects
+ if (!txtProperties.namedItem("typewriter").isNull()) {
+ QStringList effData = QStringList() << "typewriter" << txtProperties.namedItem("typewriter").nodeValue();
+ txt->setData(100, effData);
+ }
+
gitem = txt;
} else if (items.item(i).attributes().namedItem("type").nodeValue() == "QGraphicsRectItem") {
QString rect = items.item(i).namedItem("content").attributes().namedItem("rect").nodeValue();