KCoreAddons
kjsonutils.h
21 * Reads a value from @p jo but unlike QJsonObject::value() it allows different entries for each locale
22 * This is done by appending the locale identifier in brackets to the key (e.g. "[de_DE]" or "[es]")
23 * When looking for a key "foo" with German (Germany) locale we will first attempt to read "foo[de_DE]",
28KCOREADDONS_EXPORT QJsonValue readTranslatedValue(const QJsonObject &jo, const QString &key, const QJsonValue &defaultValue = QJsonValue());
31 * @return the translated value of @p key from @p jo as a string or @p defaultValue if @p key was not found
36KCOREADDONS_EXPORT QString readTranslatedString(const QJsonObject &jo, const QString &key, const QString &defaultValue = QString());
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.