communi / libcommuni

A cross-platform IRC framework for Qt
https://communi.github.io
BSD 3-Clause "New" or "Revised" License
84 stars 37 forks source link

Ensure to only use #include <QTextCodec> to fix compilation on Qt6 #101

Closed zneix closed 2 years ago

zneix commented 2 years ago

QTextCodec has been removed from Qt6 and as per #100 I'd want to try to migrate it to something else if possible. But for now that may have turned out to be a bit more difficult to do, so for the short-term solution to building libcommuni with Qt6 is to use Qt5Compat module - to use it properly though format of includes has to be exactly <QTextCodec> since that class is no longer part of QtCore.

Optionally, most other includes, like <QtCore/qbytearray.h> could be simplified to just <QByteArray>, but I didn't want to make too many unrelated changes at once - can make those in a separate pull request if that's reasonable.