diff options
| author | 2023-10-04 22:50:00 +0200 | |
|---|---|---|
| committer | 2023-10-18 10:26:35 +0200 | |
| commit | b62b83e7772e9fba12fd6eadb6c1e70924ccf173 (patch) | |
| tree | 768534de16817dadabf5f9a9f8005558f9201a9d /src/modules/upnp/XmlFunctions.cpp | |
| parent | Make shortcuts compatible with qt6; remove unused KviShortcut constructor sin... (diff) | |
| download | KVIrc-b62b83e7772e9fba12fd6eadb6c1e70924ccf173.tar.gz KVIrc-b62b83e7772e9fba12fd6eadb6c1e70924ccf173.tar.bz2 KVIrc-b62b83e7772e9fba12fd6eadb6c1e70924ccf173.zip | |
Misc Qt6 port for slightly changed class names and method signatures
Diffstat (limited to 'src/modules/upnp/XmlFunctions.cpp')
| -rw-r--r-- | src/modules/upnp/XmlFunctions.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/upnp/XmlFunctions.cpp b/src/modules/upnp/XmlFunctions.cpp index 35cebb38f..12777a488 100644 --- a/src/modules/upnp/XmlFunctions.cpp +++ b/src/modules/upnp/XmlFunctions.cpp @@ -112,7 +112,11 @@ QString XmlFunctions::getNodeValue(const QDomNode & rootNode, const QString & pa QString XmlFunctions::getSource(const QDomNode & node, int indent) { QString source; +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) QTextStream textStream(&source, QIODevice::WriteOnly); +#else + QTextStream textStream(&source, QIODeviceBase::WriteOnly); +#endif node.save(textStream, indent); return source; } |
