Removed debug code from DockManager saveState function

This commit is contained in:
Uwe Kindler 2022-11-01 11:39:34 +01:00
parent 760c0365e0
commit 2370d79ca6

View File

@ -700,8 +700,7 @@ QByteArray CDockManager::saveState(int version) const
QByteArray xmldata;
QXmlStreamWriter s(&xmldata);
auto ConfigFlags = CDockManager::configFlags();
//s.setAutoFormatting(ConfigFlags.testFlag(XmlAutoFormattingEnabled));
s.setAutoFormatting(true);
s.setAutoFormatting(ConfigFlags.testFlag(XmlAutoFormattingEnabled));
s.writeStartDocument();
s.writeStartElement("QtAdvancedDockingSystem");
s.writeAttribute("Version", QString::number(CurrentVersion));
@ -719,8 +718,6 @@ QByteArray CDockManager::saveState(int version) const
s.writeEndElement();
s.writeEndDocument();
std::cout << xmldata.toStdString() << std::endl;
return ConfigFlags.testFlag(XmlCompressionEnabled)
? qCompress(xmldata, 9) : xmldata;
}