qt5base-lts/tests/auto/corelib
Giuseppe D'Angelo 41a7546789 QDate(Time): add a addDuration method
To complement the existing addSecs / MSecs / etc., add a function
that takes any compatible std::chrono::duration.

QTime also features similar functions, but it's also "unique" in that
it uses modular arithmetic (it wraps around in case of "overflow").
I'm not so sure that adding durations to a QTime object therefore
makes sense, and I'm not doing it in this patch.

[ChangeLog][QtCore][QDate] Added addDuration().
[ChangeLog][QtCore][QDateTime] Added addDuration().

Change-Id: I02aa37ff024d7f56fa976dc8f4f73523bdba8d94
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2022-04-14 21:56:56 +02:00
..
animation tst_qanimationgroup: fix memleaks 2022-01-05 08:22:00 +01:00
global Move some purely floating-point testing from tst_QLocale to tst_QNumeric 2022-04-01 23:11:35 +02:00
io Ensure that readAllStandardError() doesn't crash on assert 2022-04-09 20:31:11 +02:00
itemmodels QAbstractProxyModel: do not access invalid indexes 2022-04-13 18:08:38 +02:00
kernel Replace uses of _qs with _s in tests 2022-04-07 19:30:17 +02:00
mimetypes Tests: Do not depend on transitive includes 2022-03-17 17:14:37 +01:00
platform Android: Add runOnMainAndroidThread() under QNativeInterface 2021-05-26 23:24:11 +00:00
plugin Android: activate tst_QPluginLoader 2022-03-30 19:05:59 +02:00
serialization Skip test that fails with Address Sanitizer enabled 2022-04-12 00:48:17 +02:00
text Fix assertion failure when parsing a doubly-invalid date-time text 2022-04-07 23:04:04 +02:00
thread Replace uses of _qs with _s in tests 2022-04-07 19:30:17 +02:00
time QDate(Time): add a addDuration method 2022-04-14 21:56:56 +02:00
tools QVarLengthArray: add missing (size, value) ctor 2022-04-13 08:10:47 +02:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00