Commit 85ecac9c authored by Ronan Abhamon's avatar Ronan Abhamon

feat(src/app/AsyncObjectBuilder): better code

parent 4ba245d6
...@@ -54,8 +54,6 @@ protected: ...@@ -54,8 +54,6 @@ protected:
QQmlEngine::setObjectOwnership(object, QQmlEngine::CppOwnership); QQmlEngine::setObjectOwnership(object, QQmlEngine::CppOwnership);
object->setParent(m_builder); object->setParent(m_builder);
m_builder->m_is_created = true;
// Call user decorator. // Call user decorator.
if (m_builder->m_decorator) if (m_builder->m_decorator)
m_builder->m_decorator(object); m_builder->m_decorator(object);
......
...@@ -45,7 +45,7 @@ public: ...@@ -45,7 +45,7 @@ public:
QObject *getObject () const; QObject *getObject () const;
bool isCreated () const { bool isCreated () const {
return m_is_created; return !!m_object;
} }
signals: signals:
...@@ -61,8 +61,6 @@ private: ...@@ -61,8 +61,6 @@ private:
QObject *m_object = nullptr; QObject *m_object = nullptr;
bool m_is_created = false;
#ifdef QT_DEBUG #ifdef QT_DEBUG
bool m_block_creation = false; bool m_block_creation = false;
#endif // ifdef QT_DEBUG #endif // ifdef QT_DEBUG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment