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

prepare for Qt 6.8 deprecations #1346

Merged
merged 17 commits into from
Oct 8, 2024
Merged

Conversation

tsteven4
Copy link
Collaborator

@tsteven4 tsteven4 commented Sep 28, 2024

This avoids deprecation warning with CMAKE_BUILD_TYPE=Release. QDateTime is transitioning from Qt::TimeSpec to QTimeZone. Lightweight times zones for LocalTime and UTC were added in 6.5.0. Warnings are appearing in pre-release versions of 6.8.0.

Also, the exif writer now prefers to establish a timestamp from
GPS_IFD_TAG_DATESTAMP/GPS_IFD_TAG_TIMESTAMP if possible, as the
exif reader does.

Also, the exif writer now prefers to establish a timestamp from
GPS_IFD_TAG_DATESTAMP/GPS_IFD_TAG_TIMESTAMP if they exist, as the
exif reader does.
@tsteven4
Copy link
Collaborator Author

tsteven4 commented Sep 28, 2024

There is also a fix for a QDomDocument deprecation in the gui upgrade check.

@tsteven4
Copy link
Collaborator Author

The warnings (and counts) being fixed are:

      1 warning: ‘QDateTime QDate::startOfDay(Qt::TimeSpec, int) const’ is deprecated: Pass QTimeZone instead [-Wdeprecated-declarations]
     19 warning: ‘QDateTime::QDateTime(QDate, QTime, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead [-Wdeprecated-declarations]
      1 warning: ‘bool QDomDocument::setContent(const QString&, QString*, int*, int*)’ is deprecated: Use the overload returning ParseResult instead. [-Wdeprecated-declarations]
    101 warning: ‘static QDateTime QDateTime::fromMSecsSinceEpoch(qint64, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead of time-spec, offset [-Wdeprecated-declarations]
      4 warning: ‘static QDateTime QDateTime::fromSecsSinceEpoch(qint64, Qt::TimeSpec, int)’ is deprecated: Pass QTimeZone instead of time-spec, offset [-Wdeprecated-declarations]
      1 warning: ‘void QDateTime::setOffsetFromUtc(int)’ is deprecated: Use setTimeZone() instead [-Wdeprecated-declarations]
      2 warning: ‘void QDateTime::setTimeSpec(Qt::TimeSpec)’ is deprecated: Use setTimeZone() instead [-Wdeprecated-declarations]
      6 warning: ‘void QDateTimeEdit::setTimeSpec(Qt::TimeSpec)’ is deprecated: Use setTimeZone() instead [-Wdeprecated-declarations]

1. allow builds to succeed without webengine by default.  This is
needed by CI until aqt catches up.
2. macos minos change for 6.8
3. add macos 6.8.0 to CI, remove macos-12 build.
@tsteven4
Copy link
Collaborator Author

tsteven4 commented Oct 8, 2024

This PR automatically disables the GUI map preview feature if QtWebEngine and/or QtWebChannel are not found. This allows CI to work with aqt 3.1.18. miurahr/aqtinstall#803, albeit without QtWebEngine.

6.8.0 builds are added to CI for windows and macos-15 (beta). The macos-12 build is removed, the runner is being deprecated. actions/runner-images#10721.

@tsteven4 tsteven4 merged commit bee3999 into GPSBabel:master Oct 8, 2024
18 checks passed
@tsteven4 tsteven4 deleted the qt680prep branch October 8, 2024 12:46
@robertlipe
Copy link
Collaborator

robertlipe commented Oct 8, 2024 via email

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

Successfully merging this pull request may close these issues.

2 participants