From 47c519e109f174d5b008ae6b1a2c7ba87a410138 Mon Sep 17 00:00:00 2001 From: Ayush Singh Date: Sat, 1 Jan 2022 20:21:40 +0530 Subject: [PATCH] Added Comments for klocalizedtranslator. --- src/klocalizedcontext.rs | 2 +- src/klocalizedtranslator.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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" {