summaryrefslogtreecommitdiff
path: root/tikzit/node.cpp
blob: 2c1c7eeeff6b0b143b20d0631064a9af3e3f2df5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "node.h"

#include <QDebug>

Node::Node(QObject *parent) : QObject(parent)
{
    qDebug() << "Node()";
}

Node::~Node()
{
    qDebug() << "~Node()";
}

QPointF Node::pos() const
{
    return _pos;
}

void Node::setPos(const QPointF &pos)
{
    _pos = pos;
}

QString Node::name() const
{
    return _name;
}

void Node::setName(const QString &name)
{
    _name = name;
}

QString Node::label() const
{
    return _label;
}

void Node::setLabel(const QString &label)
{
    _label = label;
}