aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core')
-rw-r--r--src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/NativeWindowObject.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/NativeWindowObject.cpp b/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/NativeWindowObject.cpp
index dcfd23b0..e9049cdd 100644
--- a/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/NativeWindowObject.cpp
+++ b/src-qt5/core/lumina-desktop-unified/src-desktop/src-cpp/NativeWindowObject.cpp
@@ -67,8 +67,9 @@ void NativeWindowObject::setProperty(NativeWindowObject::Property prop, QVariant
QBuffer buffer(&ba);
buffer.open(QIODevice::WriteOnly);
val.value<QImage>().save(&buffer, "PNG");
- QString img("data:image/png:base64,");
+ QString img("data:image/png;base64,");
img.append(QString::fromLatin1(ba.toBase64().data()));
+ qDebug() << "Image Data Header:" << img.section(",",0,0);
hash.insert(prop, img); //save the string instead
}
else{ hash.insert(prop, val); }
@@ -87,8 +88,9 @@ void NativeWindowObject::setProperties(QList<NativeWindowObject::Property> props
QBuffer buffer(&ba);
buffer.open(QIODevice::WriteOnly);
vals[i].value<QImage>().save(&buffer, "PNG");
- QString img("data:image/png:base64,");
+ QString img("data:image/png;base64,");
img.append(QString::fromLatin1(ba.toBase64().data()));
+ qDebug() << "Image Data Header:" << img.section(",",0,0);
hash.insert(props[i], img); //save the string instead
}else{
hash.insert(props[i], vals[i]);
bgstack15