Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for building with Qt 6 #641

Merged
merged 7 commits into from
May 30, 2021
Merged

Support for building with Qt 6 #641

merged 7 commits into from
May 30, 2021

Conversation

atsampson
Copy link
Collaborator

This is the minimal set of changes to get ld-decode to build with Qt 6 (in addition to the usual Qt 5). I've not used it extensively, but the test suite passes and ld-analyse seems to work. There are still lots of deprecation warnings from the JsonWax code.

Note that this requires a Qt 6 version of qwt, which currently means building qwt 6.2 from Git.

There is setEncoding, but QTextStream now apparently uses UTF-8 (rather
than the correct locale encoding) by default.
It's mostly the same except when it's being used with a member function
pointer... which is exactly what we're doing here.
It's used in two places. In the first case we can rearrange the code to
avoid it altogether; in the second case, we need a version conditional,
so we can also remove the remaining warning with Qt 5.15 too.
I've tested this against the current Git version of qwt, which hasn't
been released or packaged yet -- so the directory names here might need
to change later if I've not guessed what Debian will pick correctly.
@atsampson atsampson added enhancement ld-decode-tools An issue only affecting the ld-decode-tools labels May 16, 2021
@atsampson atsampson requested a review from simoninns May 16, 2021 23:03
@atsampson atsampson merged commit e1a19aa into happycube:master May 30, 2021
@atsampson atsampson deleted the qt6 branch May 30, 2021 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ld-decode-tools An issue only affecting the ld-decode-tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant