diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2019-01-03 14:01:00 +0100 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2019-01-03 14:01:00 +0100 |
commit | 99bc4eedae99fc813db3a852139758bca75bddd7 (patch) | |
tree | cec779f1a075f8b7e8f5eac02ee8e9441e516f14 /src/data/edge.h | |
parent | cbe3074cedac1cc509282a1a0df80cac998355a6 (diff) |
fixed many warnings in TikzScene and related files (mostly floating point)
Diffstat (limited to 'src/data/edge.h')
-rw-r--r-- | src/data/edge.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/data/edge.h b/src/data/edge.h index 27d5bef..909824b 100644 --- a/src/data/edge.h +++ b/src/data/edge.h @@ -71,15 +71,15 @@ public: int bend() const;
int inAngle() const;
int outAngle() const;
- float weight() const;
+ qreal weight() const;
bool basicBendMode() const;
- float cpDist() const;
+ qreal cpDist() const;
void setBasicBendMode(bool mode);
void setBend(int bend);
void setInAngle(int inAngle);
void setOutAngle(int outAngle);
- void setWeight(float weight);
+ void setWeight(qreal weight);
int tikzLine() const;
void setTikzLine(int tikzLine);
@@ -95,7 +95,7 @@ signals: public slots:
private:
- QPointF bezierTangent(float start, float end) const;
+ QPointF bezierTangent(qreal start, qreal end) const;
QString _sourceAnchor;
QString _targetAnchor;
@@ -115,8 +115,8 @@ private: int _bend;
int _inAngle;
int _outAngle;
- float _weight;
- float _cpDist;
+ qreal _weight;
+ qreal _cpDist;
QPointF _head;
QPointF _tail;
|