mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 23:51:33 +08:00
Removed debug code from DockManager saveState function
This commit is contained in:
parent
760c0365e0
commit
2370d79ca6
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user