diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-01-28 18:38:26 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-01-31 19:20:43 +0100 |
commit | d6ba2ae441b56d13edf9acf1220b50eda5e093cd (patch) | |
tree | 183de2cac437d1b34a664a22c5f038a6e8f30303 /examples/widgets/desktop/desktop.pro | |
parent | d6d98f782aeb798649c2bf5f7744065b7e86c035 (diff) |
Consolidate some Q(Date|Time)+ methods to call calendared versions
The string-returning methods were in any case delegating to either a
local static or QLocale methods that delegate to their calendar
variants, so do the default-calendar step early and reduce the number
of distinct code-paths, along with the gross number of lines of code.
In the process, short-cut past QDate::toString() when we can save its
switch and go direct to the toString{Text|Iso}Date() it's calling.
Tidy up somewhat in the process.
Change-Id: I8ba70b29ef9e8b6553c41310ebb2b63ec5570bb9
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'examples/widgets/desktop/desktop.pro')
0 files changed, 0 insertions, 0 deletions