forked from qt-creator/qt-creator
ModelEditor: Add forgotten methods for visitor pattern
Change-Id: Id96dcb5da1013e7997e914f96949ee1b01103469 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -92,4 +92,14 @@ void DRelation::setIntermediatePoints(const QList<DRelation::IntermediatePoint>
|
|||||||
m_intermediatePoints = intermediatePoints;
|
m_intermediatePoints = intermediatePoints;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DRelation::accept(DVisitor *visitor)
|
||||||
|
{
|
||||||
|
visitor->visitDRelation(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
void DRelation::accept(DConstVisitor *visitor) const
|
||||||
|
{
|
||||||
|
visitor->visitDRelation(this);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace qmt
|
} // namespace qmt
|
||||||
|
@@ -71,6 +71,9 @@ public:
|
|||||||
QList<IntermediatePoint> intermediatePoints() const { return m_intermediatePoints; }
|
QList<IntermediatePoint> intermediatePoints() const { return m_intermediatePoints; }
|
||||||
void setIntermediatePoints(const QList<IntermediatePoint> &intermediatePoints);
|
void setIntermediatePoints(const QList<IntermediatePoint> &intermediatePoints);
|
||||||
|
|
||||||
|
void accept(DVisitor *visitor);
|
||||||
|
void accept(DConstVisitor *visitor) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Uid m_modelUid;
|
Uid m_modelUid;
|
||||||
QList<QString> m_stereotypes;
|
QList<QString> m_stereotypes;
|
||||||
|
Reference in New Issue
Block a user