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

Qt 6 support #2069

Merged
merged 19 commits into from Nov 3, 2021
Merged

Qt 6 support #2069

merged 19 commits into from Nov 3, 2021

Conversation

mikedld
Copy link
Member

@mikedld mikedld commented Oct 31, 2021

Tested with Qt 6.2.1. More testing and careful review required.

While still available, QRegExp has been moved to Qt6::Core5Compat module
and is not part of Qt6::Core.
The latter is not part of Qt6::Core. The former is a private utility in
Qt6::Network; using it for now, until (and if) we switch to something
non-Qt-specific.
Although available for a long time, this state either didn't apply to
progress bars before Qt 6, or was deduced based on bar size. With Qt 6,
failing to specify it results in bad rendering.
While still available, QStringRef has been moved to Qt6::Core5Compat
module and is not part of Qt6::Core. Related method (e.g.
QString::midRef) have been removed in Qt 6.
The latter was deprecated and replaced with the former in Qt 5.6.
This property has been deprecated in Qt 5.15 and removed in Qt 6.
WinExtras module (providind the latter helper) has been removed in Qt 6.
While still available, QTextCodec has been moved to Qt6::Core5Compat
module and is not part of Qt6::Core.
Instead of being a standalone class, its definition has changed to
QList<QString> template specialization in Qt 6.
The latter was deprecated in Qt 5.8 and removed in Qt 6.
It has been removed in Qt 6. Since the original issue this code was
solving was caused by future reuse, just don't reuse futures and create
new finished ones when necessary.
The latter has been changed to a typedef for QList<>, which might not be
what one wants, and which also changed behavior a bit leading to
compilation errors.
Operator+ for enum values has been deleted in Qt 6, so using operator|
instead. Then, there's no conversion from QFlags<> to QVariant, so need
to cast to int.
@mikedld mikedld requested a review from ckerr October 31, 2021 12:00
@mikedld mikedld added scope:qt type:feat A new feature labels Oct 31, 2021
@ckerr ckerr assigned ckerr and unassigned ckerr Nov 1, 2021
CMakeLists.txt Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
cmake/TrMacros.cmake Outdated Show resolved Hide resolved
dist/msi/components/QtClient.wxs Show resolved Hide resolved
dist/msi/components/QtClient.wxs Show resolved Hide resolved
qt/FaviconCache.cc Show resolved Hide resolved
qt/RpcQueue.cc Show resolved Hide resolved
@mikedld mikedld merged commit be74cb6 into master Nov 3, 2021
@mikedld mikedld deleted the feature/qt6-support branch November 3, 2021 21:20
@mikelpr
Copy link

mikelpr commented Aug 17, 2022

ok we need a transmission 3.01 release for this to ship in distros because all of them are shipping with the vertical progress bar glitch as it's in 3.00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

4 participants