blob: 2eaa73249690f8e17dc134d0c2b3a3d783f2f9ad (
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
|
#ifndef JUNCTION_H
#define JUNCTION_H
#include <QGraphicsItem>
#include <QPainter>
#include <QList>
#include "connection.h"
namespace coreview {
class Junction : public QGraphicsItem {
public:
Junction(bool point = true);
~Junction();
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void setPos(qreal x, qreal y);
Connector *new_connector(enum Connector::Axis axis = Connector::AX_X);
private:
QList<Connector*> cons;
bool point;
};
}
#endif // JUNCTION_H
|