From 99bc4eedae99fc813db3a852139758bca75bddd7 Mon Sep 17 00:00:00 2001 From: Aleks Kissinger Date: Thu, 3 Jan 2019 14:01:00 +0100 Subject: fixed many warnings in TikzScene and related files (mostly floating point) --- src/data/edge.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/data/edge.h') 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; -- cgit v1.2.3