summaryrefslogtreecommitdiff
path: root/src/data
diff options
context:
space:
mode:
Diffstat (limited to 'src/data')
-rw-r--r--src/data/edge.cpp5
-rw-r--r--src/data/edge.h1
-rw-r--r--src/data/graphelementdata.h1
3 files changed, 7 insertions, 0 deletions
diff --git a/src/data/edge.cpp b/src/data/edge.cpp
index 6802b2d..e4d5d69 100644
--- a/src/data/edge.cpp
+++ b/src/data/edge.cpp
@@ -278,6 +278,11 @@ float Edge::cpDist() const
return _cpDist;
}
+void Edge::setBasicBendMode(bool mode)
+{
+ _basicBendMode = mode;
+}
+
void Edge::setBend(int bend)
{
_bend = bend;
diff --git a/src/data/edge.h b/src/data/edge.h
index d2913b8..595b094 100644
--- a/src/data/edge.h
+++ b/src/data/edge.h
@@ -50,6 +50,7 @@ public:
bool basicBendMode() const;
float cpDist() const;
+ void setBasicBendMode(bool mode);
void setBend(int bend);
void setInAngle(int inAngle);
void setOutAngle(int outAngle);
diff --git a/src/data/graphelementdata.h b/src/data/graphelementdata.h
index 1139a00..0d43bb8 100644
--- a/src/data/graphelementdata.h
+++ b/src/data/graphelementdata.h
@@ -22,6 +22,7 @@ public:
QString property(QString key);
bool atom(QString atom);
+
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;