#include <kis_cos_writer.h>
Definition at line 13 of file kis_cos_writer.h.
◆ writeCosFromVariantHash()
| QByteArray KisCosWriter::writeCosFromVariantHash |
( |
const QVariantHash | doc | ) |
|
|
static |
Definition at line 138 of file kis_cos_writer.cpp.
139{
140 QByteArray ba;
141 QBuffer dev(&ba);
142 if (dev.open(QIODevice::WriteOnly)) {
143 int indent = 0;
144 dev.write("\n\n");
145 bool prettyPrint = true;
147 dev.close();
148 } else {
149 qWarning() << dev.errorString();
150 }
151 return ba;
152}
void writeVariant(QIODevice &dev, const QVariantHash object, int indent, bool prettyPrint, bool writeBrackets=true)
writeVariant
References writeVariant().
◆ writeTxt2FromVariantHash()
| QByteArray KisCosWriter::writeTxt2FromVariantHash |
( |
const QVariantHash | doc | ) |
|
|
static |
Definition at line 154 of file kis_cos_writer.cpp.
155{
156 QByteArray ba;
157 QBuffer dev(&ba);
158 if (dev.open(QIODevice::WriteOnly)) {
159 dev.write(" ");
161 dev.close();
162 } else {
163 qWarning() << dev.errorString();
164 }
165 if (ba.endsWith(' ')) {
166 ba.chop(1);
167 }
168 return ba;
169}
References writeVariant().
The documentation for this class was generated from the following files: