summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglprogrambinarycache.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2022-04-02 02:25:26 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2022-04-13 01:24:04 +0200
commit0a17a0da618a9dc8151aac4dff567326c0cb8a2a (patch)
tree4f675c0dc71f2e5c30ca1a6d28bf1c8239ddf13f /src/gui/opengl/qopenglprogrambinarycache.cpp
parentb36de79ffdcb84c24a09daae762c4169e87eb805 (diff)
QDateTime: add support for std::chrono::duration arithmetic
QDateTime represents a specific point in time, so arithmetic with durations makes perfect sense. Moreover, we can finally equip QDateTime with a subtraction operator, to calculate the duration between two QDateTime objects. [ChangeLog][QtCore][QDateTime] QDateTime now supports arithmetic between QDateTime objects and std::chrono::duration objects. A duration can be added to or subtracted from a QDateTime, yielding another QDateTime; and two QDateTime objects can be subtracted from each other, yielding the duration between them. Change-Id: I656419f3bb9418c49f0e2fd0800c3dbaaf6aff32 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/opengl/qopenglprogrambinarycache.cpp')
0 files changed, 0 insertions, 0 deletions