remove BlockItemPin::Direction
This commit is contained in:
@@ -28,7 +28,6 @@ BlockItemPin::BlockItemPin(Qt::Alignment a, int bus_type_, const QString & text_
|
|||||||
setBusType(bus_type_);
|
setBusType(bus_type_);
|
||||||
setText(text_);
|
setText(text_);
|
||||||
setZValue(2.);
|
setZValue(2.);
|
||||||
setDirection(BlockItemPin::InputOutput);
|
|
||||||
_reparent();
|
_reparent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -71,13 +71,11 @@ public:
|
|||||||
|
|
||||||
int busType() const {return bus_type;}
|
int busType() const {return bus_type;}
|
||||||
Qt::Alignment alignment() const {return align;}
|
Qt::Alignment alignment() const {return align;}
|
||||||
Direction direction() const {return dir;}
|
|
||||||
QString text() const {return text_item.text();}
|
QString text() const {return text_item.text();}
|
||||||
State state() const {return state_;}
|
State state() const {return state_;}
|
||||||
|
|
||||||
void setBusType(int type_) {bus_type = type_;}
|
void setBusType(int type_) {bus_type = type_;}
|
||||||
void setAlignment(Qt::Alignment a) {align = a; _init(true);}
|
void setAlignment(Qt::Alignment a) {align = a; _init(true);}
|
||||||
void setDirection(Direction d) {dir = d; _init(true);}
|
|
||||||
void setText(const QString & t) {text_item.setText(t); _init(true);}
|
void setText(const QString & t) {text_item.setText(t); _init(true);}
|
||||||
void setState(State s);
|
void setState(State s);
|
||||||
|
|
||||||
@@ -113,7 +111,6 @@ protected:
|
|||||||
QList<BlockBusItem * > buses_;
|
QList<BlockBusItem * > buses_;
|
||||||
BlockItem * parent_;
|
BlockItem * parent_;
|
||||||
Qt::Alignment align;
|
Qt::Alignment align;
|
||||||
Direction dir;
|
|
||||||
QBrush br[6];
|
QBrush br[6];
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|||||||
Reference in New Issue
Block a user