Browse Source

remove JavaScript ownership

cl-refactor
yann300 10 years ago
parent
commit
996d340d49
  1. 2
      mix/CodeModel.h

2
mix/CodeModel.h

@ -157,7 +157,7 @@ class GasMap: public QObject
Q_PROPERTY(bool isInfinite MEMBER m_isInfinite CONSTANT) Q_PROPERTY(bool isInfinite MEMBER m_isInfinite CONSTANT)
public: public:
GasMap(int _start, int _end, QString _gas, bool _isInfinite, QObject* _parent): QObject(_parent), m_start(_start), m_end(_end), m_gas(_gas), m_isInfinite(_isInfinite) { QQmlEngine::setObjectOwnership(this, QQmlEngine::JavaScriptOwnership); } GasMap(int _start, int _end, QString _gas, bool _isInfinite, QObject* _parent): QObject(_parent), m_start(_start), m_end(_end), m_gas(_gas), m_isInfinite(_isInfinite) {}
int m_start; int m_start;
int m_end; int m_end;

Loading…
Cancel
Save