Added Comments for klocalizedtranslator.
This commit is contained in:
parent
a5ca07bad8
commit
47c519e109
|
@ -19,7 +19,7 @@ cpp! {{
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cpp_class!(
|
cpp_class!(
|
||||||
/// Struct representing KLocalizedContext. Mainly used with QML.
|
/// Struct representing [KLocalizedContext](https://api.kde.org/frameworks/ki18n/html/classKLocalizedContext.html). Mainly used with QML.
|
||||||
pub unsafe struct KLocalizedContext as "KLocalizedContextHolder"
|
pub unsafe struct KLocalizedContext as "KLocalizedContextHolder"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -14,11 +14,13 @@ cpp! {{
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cpp_class!(
|
cpp_class!(
|
||||||
|
/// Struct representing [KLocalizedTranslator](https://api.kde.org/frameworks/ki18n/html/classKLocalizedTranslator.html).
|
||||||
pub unsafe struct KLocalizedTranslator as "KLocalizedTranslatorHolder"
|
pub unsafe struct KLocalizedTranslator as "KLocalizedTranslatorHolder"
|
||||||
);
|
);
|
||||||
|
|
||||||
impl KLocalizedTranslator {
|
impl KLocalizedTranslator {
|
||||||
#[cfg(feature = "qmetaobject")]
|
#[cfg(feature = "qmetaobject")]
|
||||||
|
/// Initialize KLocalizedTranslator.
|
||||||
pub fn new<T: QObject + Sized>(obj: QObjectPinned<T>) -> KLocalizedTranslator {
|
pub fn new<T: QObject + Sized>(obj: QObjectPinned<T>) -> KLocalizedTranslator {
|
||||||
let obj_ptr = obj.get_or_create_cpp_object();
|
let obj_ptr = obj.get_or_create_cpp_object();
|
||||||
cpp!(unsafe [obj_ptr as "QObject *"] -> KLocalizedTranslator as "KLocalizedTranslatorHolder" {
|
cpp!(unsafe [obj_ptr as "QObject *"] -> KLocalizedTranslator as "KLocalizedTranslatorHolder" {
|
||||||
|
|
Loading…
Reference in a new issue