summaryrefslogtreecommitdiff
path: root/src/data
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-02-15 16:32:33 +0100
committerAleks Kissinger <aleks0@gmail.com>2018-02-15 16:32:33 +0100
commit09c331761648541de907c866c56fb6084c6f7a9b (patch)
tree8e5a11c282255a0e5248c8a6093e362aa136861f /src/data
parent768e097abd17d07dd2748894b4dc1b09471dd6da (diff)
added support for changing edge mode, and started working on windows support
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;