D8351: API dox: add note about calling setApplicationDomain after QApp creation
Friedrich W. H. Kossebau
noreply at phabricator.kde.org
Tue Oct 17 22:22:08 UTC 2017
kossebau created this revision.
kossebau added reviewers: Frameworks, ilic, ltoscano.
Restricted Application added a project: Frameworks.
REVISION SUMMARY
The current implementation of KLocalizedString::setApplicationDomain()
will trigger the creation of the KLocalizedStringPrivateStatics instance and
thus also the calculation of the locale languanges from the env vars
as set at that time, and QLocale::system() on some platforms.
So the claim that "This call can be made at any place in the code" does not
hold, instead API consumers should be instructed about when to call
the method ideally.
REPOSITORY
R249 KI18n
BRANCH
addNoteAboutCallingSetAppDomainAfterQApp
REVISION DETAIL
https://phabricator.kde.org/D8351
AFFECTED FILES
docs/programmers-guide.md
src/klocalizedstring.h
To: kossebau, #frameworks, ilic, ltoscano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171017/3bdc8e12/attachment.html>
More information about the Kde-frameworks-devel
mailing list