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

Make Mixxx build with Qt6 #4641

Merged
merged 17 commits into from
Jan 22, 2022
Merged

Make Mixxx build with Qt6 #4641

merged 17 commits into from
Jan 22, 2022

Conversation

Holzhaus
Copy link
Member

No description provided.

From the Qt docs:

> Note: This function is deprecated. For new code, use setSecsSinceEpoch().
>
> Source: https://doc.qt.io/qt-5/qdatetime-obsolete.html#setTime_t
This is more efficient and also fixes a potential issue with Qt 6:

    ‘QSqlQuery::QSqlQuery(const QSqlQuery&)’ is deprecated: QSqlQuery is not meant to be copied. Use move construction instead. [-Werror=deprecated-declarations]
      438 |                     parsePlaylistEntries(xml, current_path,
          |                     ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
In contrast to the `const char*` comparison, the comparison with
QLatin1String is forward compatible with Qt 6.
These version checks actually result in compiler errors when trying to
build this with Qt 6.
Qt6 replaces QStringRef with QStringView and updates the regular
QString::left()/QString::mid() methods to return those.
This is not ideal, the whole VisualPlayPosition/VSyncThead stuff needs
to be removed eventually.
This also fixes a test failure with Qt6. It's unknown why this happens,
but the new code works with both Qt5 and Qt6 and is more readable and
ideomatic anyway.
This makes is much easier to fix linker errors.
Copy link
Contributor

@uklotzde uklotzde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Just one minor remark.

src/mixer/basetrackplayer.cpp Show resolved Hide resolved
@uklotzde
Copy link
Contributor

LGTM

@uklotzde uklotzde merged commit 53c8dc7 into main Jan 22, 2022
@uklotzde uklotzde deleted the qt6 branch January 22, 2022 22:24
JoergAtGithub added a commit to JoergAtGithub/mixxx that referenced this pull request Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants