i connect this in a (lets say setting.cpp), the slot is in another (lets say node.cpp)

Qt Code:
  1. connect(ui.EDnameTxt, SIGNAL(textChanged(QString)), Node, SLOT(setText(QString)));
To copy to clipboard, switch view to plain text mode 

but when i compile it give me this error,

1>.\settingswindow.cpp(57) : error C2275: 'Node' : illegal use of this type as an expression
1> c:\texas instruments\node.h(62) : see declaration of 'Node'

whats wrong with the declartion of my node.h???

Qt Code:
  1. class Node : public QGraphicsItem, public QObject
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. typedef enum{ACCESS_POINT, END_DEVICE}NODE_TYPE;
  7. typedef struct
  8. {
  9. NODE_TYPE type;
  10. int addr;
  11. int xPos;
  12. int yPos;
  13. int strength;
  14. float temp;
  15. float voltage;
  16. int re;
  17.  
  18. int t_time_on;
  19. int fadeNumber;
  20. int fadeTime;
  21. int newNode;
  22. int deletedNode;
  23.  
  24. }NODE_DATA;
  25.  
  26. QBrush fill[40];
  27. Node(NetworkView *networkView);
  28. NODE_DATA nodeData;
  29. void addEdge(Edge *edge);
  30. QList<Edge *> edges() const;
  31.  
  32. enum { Type = UserType + 1 };
  33. int type() const { return Type; }
  34.  
  35. bool advance();
  36.  
  37. QRectF boundingRect() const;
  38. QPainterPath shape() const;
  39. void EDnamePreset();
  40. void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
  41.  
  42.  
  43. void setNodeData(int index);
  44. void updateData(int index);
  45. void AlertMessage();
  46. int getElapsedTime();
  47. void removeEdge(int childAddr = 0);
  48. int getAddr() { return nodeData.addr; }
  49. float getTemp() { return nodeData.temp; }
  50. int getType() { return nodeData.type; }
  51. void setTempUnit();
  52. void setColor(const NODE_TYPE type);
  53. int Node::find_active_node();
  54. void Node::current_updateData(int index);
  55.  
  56. int timerId () const;
  57.  
  58. /*struct colors{
  59. int alpha;
  60. int r;
  61. int g;
  62. int b;
  63. int newnodeflag;
  64. int delnodeflag;
  65. };
  66. struct colors node_colors[100];*/
  67. public slots:
  68. void EDnameChanged(int);
  69. void setText(const QString &newText){text = newText;}
  70.  
  71. protected:
  72. QVariant itemChange(GraphicsItemChange change, const QVariant &value);
  73.  
  74. void timerEvent(QTimerEvent *);
  75.  
  76. // NODE_DATA nodeData;
  77.  
  78. private:
  79. Ui_SettingsWindow ui;
  80. QList<Edge *> edgeList;
  81. QPointF newPos;
  82. NetworkView *graph;
  83. QPixmap pixmap,alpha_pix,back_pix,pixmap2,pix;
  84.  
  85. QColor nodeColor;
  86. QColor nodeColorDark;
  87. QColor AlertColor;
  88. QColor AlertColorDark;
  89. QColor DisAlertColorDark;
  90. QColor DisAlertColor;
  91.  
  92. QFont modeFont;
  93. QFont addrFont;
  94. QFont tempFont;
  95. QFont battFont;
  96. QFont strengthFont;
  97. QFont timeFont;
  98. QFont end_deviceFont;
  99. QFont keyFont;
  100. QFont smallFont;
  101. QFont txFont;
  102.  
  103. QTime timeStamp;
  104. QDate dateStamp;
  105.  
  106. NodeDb *pNodeDb;
  107.  
  108. // Flag used to highlight node.
  109. bool updated;
  110. int updateTimerId,fade_speed,updateTimerId2,updateTimerId3;
  111.  
  112. bool celsius;
  113. qreal arrowSize;
  114. double alertTemp;
  115. int alertDistance;
  116. int edStrength;
  117. QString nodeName;
  118. QString EDname;
  119. QString text;
  120. QString EDnameText;
  121. };
To copy to clipboard, switch view to plain text mode