1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-25 20:25:54 +01:00
GPXSee/src/common/textcodec.h
Martin Tůma 310a113e25 Switched from fallback encodings to core5compat module in Qt6 builds
Archlinux has started to use the Qt6 build, so to support the legacy East Asian
encodings use the compat module rather than a "clean" but less functional
fallback solution and hope there will be some replacement in Qt6 before
the module gets dropped. Non-UTF XML files will however still not work.
2021-10-27 20:29:12 +02:00

21 lines
251 B
C++

#ifndef TEXTCODEC_H
#define TEXTCODEC_H
#include <QString>
class QTextCodec;
class TextCodec
{
public:
TextCodec();
TextCodec(int codepage);
QString toString(const QByteArray &ba) const;
private:
QTextCodec *_codec;
};
#endif // TEXTCODEC_H