mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-24 03:10:52 +01:00
Update number of terminal, add new constructor and setNumber function.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2610 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -31,8 +31,9 @@ class Terminal : public QGraphicsItem {
|
||||
|
||||
// constructors, destructor
|
||||
public:
|
||||
Terminal(QPointF, QET::Orientation, Element * = 0, Diagram * = 0);
|
||||
Terminal(qreal, qreal, QET::Orientation, Element * = 0, Diagram * = 0);
|
||||
Terminal(QPointF, QET::Orientation, QString number, Element * = 0, Diagram * = 0);
|
||||
Terminal(qreal, qreal, QET::Orientation, QString number, Element * = 0, Diagram * = 0);
|
||||
virtual ~Terminal();
|
||||
|
||||
private:
|
||||
@@ -62,6 +63,7 @@ class Terminal : public QGraphicsItem {
|
||||
QET::Orientation orientation() const;
|
||||
QPointF dockConductor() const;
|
||||
QString number() const;
|
||||
void setNumber(QString number);
|
||||
void updateConductor();
|
||||
bool isLinkedTo(Terminal *);
|
||||
bool canBeLinkedTo(Terminal *);
|
||||
|
||||
Reference in New Issue
Block a user