@@ -111,7 +111,7 @@ mod tests {
111111                    } , 
112112                    has_qobject_macro:  true , 
113113                    blocks:  GeneratedCppQObjectBlocks  { 
114-                         base_classes:  vec![ "QStringListModel" . to_owned( ) ] , 
114+                         base_classes:  vec![ "public  QStringListModel" . to_owned( ) ] , 
115115                        includes:  { 
116116                          let  mut  includes = BTreeSet :: <String >:: default ( ) ; 
117117                          includes. insert( "#include <test>" . to_owned( ) ) ; 
@@ -233,7 +233,7 @@ mod tests {
233233                    namespace_internals:  "cxx_qt::cxx_qt_first_object" . to_owned( ) , 
234234                    has_qobject_macro:  true , 
235235                    blocks:  GeneratedCppQObjectBlocks  { 
236-                         base_classes:  vec![ "QStringListModel" . to_owned( ) ] , 
236+                         base_classes:  vec![ "public  QStringListModel" . to_owned( ) ] , 
237237                        includes:  { 
238238                          let  mut  includes = BTreeSet :: <String >:: default ( ) ; 
239239                          includes. insert( "#include <test>" . to_owned( ) ) ; 
@@ -276,7 +276,7 @@ mod tests {
276276                    namespace_internals:  "cxx_qt::cxx_qt_second_object" . to_owned( ) , 
277277                    has_qobject_macro:  true , 
278278                    blocks:  GeneratedCppQObjectBlocks  { 
279-                         base_classes:  vec![ "QStringListModel" . to_owned( ) ] , 
279+                         base_classes:  vec![ "public  QStringListModel" . to_owned( ) ] , 
280280                        includes:  { 
281281                          let  mut  includes = BTreeSet :: <String >:: default ( ) ; 
282282                          includes. insert( "#include <test>" . to_owned( ) ) ; 
@@ -374,6 +374,13 @@ mod tests {
374374          void privateMethod() const; 
375375          void privateMethod(); 
376376
377+ 
378+         private: 
379+           template<typename Inner, typename Outer> 
380+           friend Inner& ::rust::cxxqt1::unsafeRustMut(Outer& outer); 
381+ 
382+           template<typename Inner, typename Outer> 
383+           friend const Inner& ::rust::cxxqt1::unsafeRust(const Outer& outer); 
377384        }; 
378385
379386        static_assert(::std::is_base_of<QObject, MyObject>::value, "MyObject must inherit from QObject"); 
@@ -428,6 +435,13 @@ mod tests {
428435          Q_SIGNAL void countChanged(); 
429436
430437
438+ 
439+         private: 
440+           template<typename Inner, typename Outer> 
441+           friend Inner& ::rust::cxxqt1::unsafeRustMut(Outer& outer); 
442+ 
443+           template<typename Inner, typename Outer> 
444+           friend const Inner& ::rust::cxxqt1::unsafeRust(const Outer& outer); 
431445        }; 
432446
433447        static_assert(::std::is_base_of<QObject, FirstObject>::value, "FirstObject must inherit from QObject"); 
@@ -455,6 +469,13 @@ mod tests {
455469        private: 
456470          void privateMethod() const; 
457471
472+ 
473+         private: 
474+           template<typename Inner, typename Outer> 
475+           friend Inner& ::rust::cxxqt1::unsafeRustMut(Outer& outer); 
476+ 
477+           template<typename Inner, typename Outer> 
478+           friend const Inner& ::rust::cxxqt1::unsafeRust(const Outer& outer); 
458479        }; 
459480
460481        static_assert(::std::is_base_of<QObject, SecondObject>::value, "SecondObject must inherit from QObject"); 
@@ -506,6 +527,13 @@ mod tests {
506527          void privateMethod() const; 
507528          void privateMethod(); 
508529
530+ 
531+         private: 
532+           template<typename Inner, typename Outer> 
533+           friend Inner& ::rust::cxxqt1::unsafeRustMut(Outer& outer); 
534+ 
535+           template<typename Inner, typename Outer> 
536+           friend const Inner& ::rust::cxxqt1::unsafeRust(const Outer& outer); 
509537        }; 
510538
511539        static_assert(::std::is_base_of<QObject, MyObject>::value, "MyObject must inherit from QObject"); 
0 commit comments