node.cpp 405 B

12345678910111213141516171819
  1. #include "node.h"
  2. Node::Node(Node * other)
  3. {
  4. m_id = other->m_id;
  5. m_pld = other-> m_pld;
  6. m_status = other->m_status;
  7. m_message = other->m_message;
  8. setParent(other->parent());
  9. setObjectName(other->objectName());
  10. }
  11. Node::Node(unsigned int id,int pld,bool status, QString message, QObject * parent)
  12. :QObject(parent),m_id(id),m_pld(pld), m_status(status),m_message(message)
  13. {
  14. }