diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-10-05 13:39:45 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-12-04 15:09:46 +0100 |
commit | 2b7c74d5ff7e835ffa76ed3c80b05cf73af40f4f (patch) | |
tree | 7d3b62e14342ae8105d9b73bc3e458341b67471c /src/gui | |
parent | 94c3c7a491e0c25cf2179efe04c2fbd80b370c1c (diff) |
Enable testing for whether a calendar registered its primary name
In registerAlias(), return true if this instance is already registered
with the given name.
Previously there was no way for a QCalendarBackend to tell whether its
primary name registration had succeeded, during instantiation (other
than by devious hackery using a QCalendar instance with the name and
some form of back-channel in the instance).
Use this in backendFromEnum() to catch cases in which (e.g. due to a
race condition) a new instance isn't the one that got registered.
Pick-to: 6.0 5.15
Change-Id: I468ac364a68bf3574cd7f8b8b1e672d8fd969111
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions