diff --git a/src/klocalizedcontext.rs b/src/klocalizedcontext.rs index a5f3086..77ac9c2 100644 --- a/src/klocalizedcontext.rs +++ b/src/klocalizedcontext.rs @@ -19,7 +19,7 @@ cpp! {{ }} 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" ); diff --git a/src/klocalizedtranslator.rs b/src/klocalizedtranslator.rs index 84a1562..0241184 100644 --- a/src/klocalizedtranslator.rs +++ b/src/klocalizedtranslator.rs @@ -14,11 +14,13 @@ cpp! {{ }} cpp_class!( + /// Struct representing [KLocalizedTranslator](https://api.kde.org/frameworks/ki18n/html/classKLocalizedTranslator.html). pub unsafe struct KLocalizedTranslator as "KLocalizedTranslatorHolder" ); impl KLocalizedTranslator { #[cfg(feature = "qmetaobject")] + /// Initialize KLocalizedTranslator. pub fn new(obj: QObjectPinned) -> KLocalizedTranslator { let obj_ptr = obj.get_or_create_cpp_object(); cpp!(unsafe [obj_ptr as "QObject *"] -> KLocalizedTranslator as "KLocalizedTranslatorHolder" {