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