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

DolphinQt: Qt 6.0 forward-compatibility changes #9440

Merged
merged 5 commits into from Jan 27, 2021

Conversation

lioncash
Copy link
Member

Makes changes that should ease us into transitioning over to Qt 6.0 in the future. Qt 6 brings a few breaking changes with it, and thankfully, replacements for most of those deprecated or removed features were introduced within Qt 5, so we can replace those obsoleted features.

This way when we move to Qt 6, way less things will break due to APIs being removed or changed.

This literal was deprecated in 5.14.0. Not to mention it wasn't
documented as part of the API either: see the 5.14.0 changelog here:

https://code.qt.io/cgit/qt/qtbase.git/tree/dist/changes-5.14.0?h=v5.14.0

On Qt 6.0 this define is removed entirely. To stay forward compatible,
we can make use of QStringLiteral instead.
An indirect inclusion scenario that breaks on Qt 6.0
Qt 5.0 introduced QRegularExpression to replace QRegExp. In Qt 6.0,
QRegExp is removed entirely in favor of it.
This function has been marked as obsolete. In Qt 6.0 it's removed
entirely, so we must use getContentsMargin() explicitly instead
(margin() would do this for us).

Ditto for setMargin(), in which case we use setContentsMargin instead.
setMargin() would just pass its argument to all four parameters of
setContentsMargin(), so we can do the same.
These have been replaced with setSecsSinceEpoch() and
toSecsSinceEpoch(), respectively within Qt 5.8, so we can migrate over
to them.
@nbohr1more
Copy link

nbohr1more commented Jan 14, 2021

@RinMaru GitHub is a developer platform. If you wish to "discuss" Dolphin changes, go to the dolphin emulator forums:

https://forums.dolphin-emu.org/Forum-development-discussion

or IRC

#dolphin-emu @ irc.freenode.net

QT framework changes should not affect any visual elements. There are rare cases where a legacy QT feature is used then removed with no replacement where the developers would have to implement a "from scratch" equivalent but this replacement would be on the backend behind the visual elements so it would only (possibly) affect animations \ menu transitions \ etc... not the actual visual appearance.

@leoetlino leoetlino merged commit 28cd6f6 into dolphin-emu:master Jan 27, 2021
10 checks passed
@lioncash lioncash deleted the qt6 branch January 27, 2021 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants