diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2020-05-02 19:05:20 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2020-05-20 19:56:17 -0700 |
commit | 12b13763883d649fe32893a123ec69dca62056df (patch) | |
tree | 8b67fd7cac63298f47859ac350c1d8d02d978864 /src/plugins/sceneparsers/gltfexport/gltfexporter.cpp | |
parent | e620bcded0e98772983252f0dddf8199f1b46357 (diff) |
Suppress the warning about binary JSON being deprecated
There's an upgrade plan somewhere, because binary JSON won't exist in Qt
5. Someone is taking care of that, surely.
Change-Id: I99ab0f318b1c43b89888fffd160b626e8b871766
Reviewed-by: Simon Hausmann <hausmann@gmail.com>
Diffstat (limited to 'src/plugins/sceneparsers/gltfexport/gltfexporter.cpp')
-rw-r--r-- | src/plugins/sceneparsers/gltfexport/gltfexporter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/sceneparsers/gltfexport/gltfexporter.cpp b/src/plugins/sceneparsers/gltfexport/gltfexporter.cpp index b4b87ef76..298c5b8b6 100644 --- a/src/plugins/sceneparsers/gltfexport/gltfexporter.cpp +++ b/src/plugins/sceneparsers/gltfexport/gltfexporter.cpp @@ -1588,7 +1588,10 @@ bool GLTFExporter::saveScene() if (m_gltfOpts.binaryJson) { if (f.open(QIODevice::WriteOnly | QIODevice::Truncate)) { m_exportedFiles.insert(QFileInfo(f.fileName()).fileName()); +QT_WARNING_PUSH +QT_WARNING_DISABLE_DEPRECATED QByteArray json = m_doc.toBinaryData(); +QT_WARNING_POP f.write(json); f.close(); } else { |