@@ -60,6 +60,7 @@ mod tests {
60
60
cxx_qt_thread_ident: "MyObjectCxxQtThread" . to_owned( ) ,
61
61
namespace_internals: "cxx_qt::my_object::cxx_qt_my_object" . to_owned( ) ,
62
62
base_class: "QStringListModel" . to_owned( ) ,
63
+ parent_class: "QObject" . to_owned( ) ,
63
64
blocks: GeneratedCppQObjectBlocks {
64
65
metaobjects: vec![
65
66
"Q_PROPERTY(int count READ count WRITE setCount NOTIFY countChanged)" . to_owned( ) ,
@@ -158,6 +159,7 @@ mod tests {
158
159
cxx_qt_thread_ident: "FirstObjectCxxQtThread" . to_owned( ) ,
159
160
namespace_internals: "cxx_qt::cxx_qt_first_object" . to_owned( ) ,
160
161
base_class: "QStringListModel" . to_owned( ) ,
162
+ parent_class: "QObject" . to_owned( ) ,
161
163
blocks: GeneratedCppQObjectBlocks {
162
164
metaobjects: vec![
163
165
"Q_PROPERTY(int longPropertyNameThatWrapsInClangFormat READ count WRITE setCount NOTIFY countChanged)"
@@ -195,6 +197,7 @@ mod tests {
195
197
cxx_qt_thread_ident: "SecondObjectCxxQtThread" . to_owned( ) ,
196
198
namespace_internals: "cxx_qt::cxx_qt_second_object" . to_owned( ) ,
197
199
base_class: "QStringListModel" . to_owned( ) ,
200
+ parent_class: "QQuickItem" . to_owned( ) ,
198
201
blocks: GeneratedCppQObjectBlocks {
199
202
metaobjects: vec![
200
203
"Q_PROPERTY(int count READ count WRITE setCount NOTIFY countChanged)"
@@ -367,7 +370,7 @@ mod tests {
367
370
Q_PROPERTY(int count READ count WRITE setCount NOTIFY countChanged)
368
371
369
372
public:
370
- explicit SecondObject(QObject * parent = nullptr);
373
+ explicit SecondObject(QQuickItem * parent = nullptr);
371
374
~SecondObject();
372
375
SecondObjectRust const& unsafeRust() const;
373
376
SecondObjectRust& unsafeRustMut();
@@ -611,7 +614,7 @@ mod tests {
611
614
612
615
namespace cxx_qt {
613
616
614
- SecondObject::SecondObject(QObject * parent)
617
+ SecondObject::SecondObject(QQuickItem * parent)
615
618
: QStringListModel(parent)
616
619
, m_rustObj(cxx_qt::cxx_qt_second_object::createRs())
617
620
, m_rustObjMutex(::std::make_shared<::std::recursive_mutex>())
0 commit comments