mirror of
https://invent.kde.org/multimedia/kdenlive
synced 2025-12-07 00:39:58 +01:00
Compare commits
2 Commits
work/qtweb
...
v15.04.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
96f64cfa4d | ||
|
|
375e4b3545 |
@@ -1669,7 +1669,7 @@ void KdenliveDoc::updateProjectFolderPlacesEntry()
|
||||
*/
|
||||
|
||||
const QString file = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + "/user-places.xbel";
|
||||
KBookmarkManager *bookmarkManager = KBookmarkManager::managerForFile(file, "kfilePlaces");
|
||||
KBookmarkManager *bookmarkManager = KBookmarkManager::managerForExternalFile(file);
|
||||
if (!bookmarkManager) return;
|
||||
KBookmarkGroup root = bookmarkManager->root();
|
||||
|
||||
|
||||
@@ -173,7 +173,7 @@ QDomDocument TitleDocument::xml(QGraphicsRectItem* startv, QGraphicsRectItem* en
|
||||
cursor.select(QTextCursor::Document);
|
||||
QColor fontcolor = cursor.charFormat().foreground().color();
|
||||
content.setAttribute("font-color", colorToString(fontcolor));
|
||||
if (!t->data(101).isNull()) content.setAttribute("font-outline", t->data(101).toDouble());
|
||||
if (!t->data(101).isNull()) content.setAttribute("font-outline", QString::number(t->data(101).toDouble()));
|
||||
if (!t->data(102).isNull()) {
|
||||
QVariant variant = t->data(102);
|
||||
QColor outlineColor = variant.value<QColor>();
|
||||
@@ -183,7 +183,7 @@ QDomDocument TitleDocument::xml(QGraphicsRectItem* startv, QGraphicsRectItem* en
|
||||
if (!t->data(100).isNull()) {
|
||||
QStringList effectParams = t->data(100).toStringList();
|
||||
QString effectName = effectParams.takeFirst();
|
||||
content.setAttribute("textwidth", t->sceneBoundingRect().width());
|
||||
content.setAttribute("textwidth", QString::number(t->sceneBoundingRect().width()));
|
||||
content.setAttribute(effectName, effectParams.join(";"));
|
||||
}
|
||||
|
||||
@@ -204,8 +204,8 @@ QDomDocument TitleDocument::xml(QGraphicsRectItem* startv, QGraphicsRectItem* en
|
||||
|
||||
// position
|
||||
QDomElement pos = doc.createElement("position");
|
||||
pos.setAttribute("x", item->pos().x());
|
||||
pos.setAttribute("y", item->pos().y());
|
||||
pos.setAttribute("x", QString::number(item->pos().x()));
|
||||
pos.setAttribute("y", QString::number(item->pos().y()));
|
||||
QTransform transform = item->transform();
|
||||
QDomElement tr = doc.createElement("transform");
|
||||
if (!item->data(ZOOMFACTOR).isNull()) {
|
||||
@@ -230,7 +230,7 @@ QDomDocument TitleDocument::xml(QGraphicsRectItem* startv, QGraphicsRectItem* en
|
||||
QDomElement effect = doc.createElement("effect");
|
||||
if (blur) {
|
||||
effect.setAttribute("type", "blur");
|
||||
effect.setAttribute("blurradius", blur->blurRadius());
|
||||
effect.setAttribute("blurradius", QString::number(blur->blurRadius()));
|
||||
} /*else {
|
||||
//WARNING:those effects are anyways broken because they use QPixmaps which are not safe for MLT's threaded workflow
|
||||
QGraphicsDropShadowEffect *shadow = static_cast <QGraphicsDropShadowEffect *>(eff);
|
||||
|
||||
Reference in New Issue
Block a user