Qt6: add missing includes

This class is only available via Qt5 compatibility and for that we need the
explicit include.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2022-02-09 17:14:22 -08:00
parent 3321904434
commit 8b463ca158
2 changed files with 2 additions and 1 deletions

View file

@ -10,6 +10,7 @@
#include <QFile>
#include <QDebug>
#include <QNetworkProxy>
#include "QTextCodec"
#define LARGE_TEST_REPO "https://github.com/Subsurface/large-anonymous-sample-data"

View file

@ -6,6 +6,7 @@
#include "core/file.h"
#include "core/save-profiledata.h"
#include "core/pref.h"
#include "QTextCodec"
// This test compares the content of struct profile against a known reference version for a list
// of dives to prevent accidental regressions. Thus is you change anything in the profile this
@ -18,7 +19,6 @@ void TestProfile::init()
{
// Set UTF8 text codec as in real applications
QTextCodec::setCodecForLocale(QTextCodec::codecForMib(106));
// first, setup the preferences
// normally we should be able to do this - but it makes this test fail because the reference data