summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2022-02-16 11:00:01 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2022-02-18 17:44:53 +0100
commit795c94658d88d1139d922173aa26beace4ae9fae (patch)
tree1ef4a6dbd41fa1a8356fdc7c8ae7873f2205511c /src/gui/painting
parenta2236c7675144ea971e98d2f9bead38ae05659d1 (diff)
Expand testing of QDateTime's isNull() and isValid()
Bring out the asymmetry between date and time more clearly; when date is valid, an invalid time is ignored in favor of QTime(0, 0). At the same time, eliminate an un-needed variable from the code that implements this special handling. (Left over from when the QTime was passed by const ref, rather than by value.) Change-Id: I81d8a9026cbb7887a8c638a2761b3db54c088af7 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/painting')
0 files changed, 0 insertions, 0 deletions