-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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.8 deprecated declaration fixes #13845
Conversation
might be worth backporting to 2.5? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
5242673
to
b8125d5
Compare
8406d6b
to
78d41e6
Compare
575dc5d
to
723f703
Compare
Fixes warnings such as: mixxx/src/controllers/legacycontrollersettings.cpp: In member function ‘virtual QWidget* LegacyControllerBooleaetting::buildInputWidget(QWidget*)’: mixxx/src/controllers/legacycontrollersettings.cpp:144:36: error: ‘void QCheckBox::stateChanged(int)’ is depreced: Use checkStateChanged() instead [-Werror=deprecated-declarations] 144 | connect(pCheckBox, &QCheckBox::stateChanged, this, [this](int state) { | ^~~~~~~~~~~~ In file included from /usr/include/qt6/QtWidgets/QCheckBox:1, from mixxx/src/controllers/legacycontrollersettings.cpp:5:/usr/include/qt6/QtWidgets/qcheckbox.h:41:10: note: declared here 41 | void stateChanged(int); | ^~~~~~~~~~~~ cc1plus: all warnings being treated as errors
723f703
to
3767f3a
Compare
3767f3a
to
eec9ea4
Compare
Fixes warnings such as: In file included from mixxx/src/library/browse/browsethread.cpp:10: mixxx/src/util/datetime.h: In function ‘QDateTime mixxx::localDateTimeFromUtc(const QDateTime&)’: mixxx/src/util/datetime.h:16:51: error: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead [-Werror=deprecated-declarations] 16 | return QDateTime(dt.date(), dt.time(), Qt::UTC).toLocalTime(); | ^ In file included from /usr/include/qt6/QtCore/QDateTime:1, from mixxx/src/util/fileinfo.h:5, from mixxx/src/util/fileaccess.h:3, from mixxx/src/library/browse/browsethread.h:14, from mixxx/src/library/browse/browsethread.cpp:1: /usr/include/qt6/QtCore/qdatetime.h:359:5: note: declared here 359 | QDateTime(QDate date, QTime time, Qt::TimeSpec spec, int offsetSeconds = 0); | ^~~~~~~~~ cc1plus: all warnings being treated as errors
Fixes warnings such as: mixxx/src/skin/legacy/legacyskinparser.cpp: In static member function ‘static QDomE lement LegacySkinParser::openSkin(const QString&)’: mixxx/src/skin/legacy/legacyskinparser.cpp:237:25: error: ‘bool QDomDocument::setCo ntent(QIODevice*, QString*, int*, int*)’ is deprecated: Use the overload returning ParseResult instead . [-Werror=deprecated-declarations] 237 | if (!skin.setContent(&skinXmlFile,&errorMessage,&errorLine,&errorColumn)) { | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/qt6/QtXml/QDomElement:1, from mixxx/src/skin/legacy/legacyskinparser.h:3, from mixxx/src/skin/legacy/legacyskinparser.cpp:1: /usr/include/qt6/QtXml/qdom.h:330:10: note: declared here 330 | bool setContent(QIODevice *dev, QString *errorMsg, int *errorLine = nullptr, int *errorCol umn = nullptr); | ^~~~~~~~~~
eec9ea4
to
768c022
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you. Waiting for CI. I look forward into removing all these #if
s again once we caught up 😅
CI is failing in 2.5. Not because of this PR. |
No description provided.