[vlc-commits] [Git][videolan/vlc][master] qt: remove deprecated timespec
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Wed Dec 18 15:52:12 UTC 2024
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
3c07c336 by Steve Lhomme at 2024-12-18T15:22:46+00:00
qt: remove deprecated timespec
Will be gone in 6.10. The replacement Timezone was added in 6.7.
And we don't need to set it unless the display format uses a timezone [1] + [2].
This avoids this kind of warnings:
```
./gui/qt/ui/open.h:205:27: warning: 'setTimeSpec' is deprecated: Use setTimeZone() instead [-Wdeprecated-declarations]
205 | stopTimeTimeEdit->setTimeSpec(Qt::LocalTime);
| ^
/mnt/s/sources/build/win64-llvm18/contrib/x86_64-w64-mingw32ucrt/include/QtWidgets/qdatetimeedit.h:134:5: note: 'setTimeSpec' has been explicitly marked deprecated here
134 | QT_DEPRECATED_VERSION_X_6_10("Use setTimeZone() instead")
| ^
/mnt/s/sources/build/win64-llvm18/contrib/x86_64-w64-mingw32ucrt/include/QtCore/qtdeprecationmarkers.h:187:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_6_10'
187 | # define QT_DEPRECATED_VERSION_X_6_10(text) QT_DEPRECATED_X(text)
| ^
/mnt/s/sources/build/win64-llvm18/contrib/x86_64-w64-mingw32ucrt/include/QtCore/qtdeprecationmarkers.h:29:33: note: expanded from macro 'QT_DEPRECATED_X'
29 | # define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
| ^
/mnt/s/sources/build/win64-llvm18/contrib/x86_64-w64-mingw32ucrt/include/QtCore/qcompilerdetection.h:1000:36: note: expanded from macro 'Q_DECL_DEPRECATED_X'
1000 | # define Q_DECL_DEPRECATED_X(x) [[deprecated(x)]]
| ^
```
[1] https://doc.qt.io/qt-6/qdatetimeedit.html#timeZone-prop
[2] https://doc.qt.io/qt-6/qtime.html#toString
- - - - -
1 changed file:
- modules/gui/qt/dialogs/open/open.ui
Changes:
=====================================
modules/gui/qt/dialogs/open/open.ui
=====================================
@@ -249,9 +249,6 @@
<property name="displayFormat">
<string>HH'H':mm'm':ss's'.zzz</string>
</property>
- <property name="timeSpec">
- <enum>Qt::LocalTime</enum>
- </property>
</widget>
</item>
<item row="1" column="4" colspan="2">
@@ -268,9 +265,6 @@
<property name="displayFormat">
<string>HH'H':mm'm':ss's'.zzz</string>
</property>
- <property name="timeSpec">
- <enum>Qt::LocalTime</enum>
- </property>
</widget>
</item>
<item row="4" column="0" colspan="6">
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3c07c3369a5313b2d79e95dec20c1f6a1041ad23
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3c07c3369a5313b2d79e95dec20c1f6a1041ad23
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list