Code Documentation 3.1
Social Network Visualizer
Loading...
Searching...
No Matches
graphicsnodelabel.h
Go to the documentation of this file.
1
17#ifndef GRAPHICSNODELABEL_H
18#define GRAPHICSNODELABEL_H
19
20#include <QGraphicsTextItem>
21class GraphicsNode;
22
23static const int TypeLabel = QGraphicsItem::UserType+4;
24static const int ZValueNodeLabel = 80;
25
26class GraphicsNodeLabel : public QGraphicsTextItem{
27public:
28 GraphicsNodeLabel(GraphicsNode * , const QString &text, const int &size );
29
30 void removeRefs();
31 enum { Type = UserType + 4 };
32 int type() const { return Type; }
33 void setSize(const int &size);
35 GraphicsNode* node() { return source; }
36private:
38};
39
40#endif
Definition graphicsnodelabel.h:26
void setSize(const int &size)
Definition graphicsnodelabel.cpp:36
GraphicsNode * node()
Definition graphicsnodelabel.h:35
~GraphicsNodeLabel()
Definition graphicsnodelabel.cpp:47
@ Type
Definition graphicsnodelabel.h:31
GraphicsNode * source
Definition graphicsnodelabel.h:37
void removeRefs()
Definition graphicsnodelabel.cpp:42
int type() const
Definition graphicsnodelabel.h:32
Definition graphicsnode.h:47
static const int TypeLabel
Definition graphicsnodelabel.h:23
static const int ZValueNodeLabel
Definition graphicsnodelabel.h:24