GCC warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-08-07 18:17:50 +03:00
parent da91ed974a
commit d9360f3c96
2 changed files with 6 additions and 6 deletions

View File

@ -73,9 +73,9 @@ Vector3D QVector3DProperty::getVector() const
return tmpVect; return tmpVect;
} }
tmpVect.X = d_ptr->Children.at(0)->getValue().toFloat(); tmpVect.X = d_ptr->Children.at(0)->getValue().toDouble();
tmpVect.Y = d_ptr->Children.at(1)->getValue().toFloat(); tmpVect.Y = d_ptr->Children.at(1)->getValue().toDouble();
tmpVect.Z = d_ptr->Children.at(2)->getValue().toFloat(); tmpVect.Z = d_ptr->Children.at(2)->getValue().toDouble();
return tmpVect; return tmpVect;
} }
@ -86,7 +86,7 @@ void QVector3DProperty::setVector(const Vector3D &vect)
setVector(vect.X, vect.Y, vect.Z); setVector(vect.X, vect.Y, vect.Z);
} }
void QVector3DProperty::setVector(float x, float y, float z) void QVector3DProperty::setVector(double x, double y, double z)
{ {
if (d_ptr->Children.count() < 3) if (d_ptr->Children.count() < 3)
{ {
@ -131,7 +131,7 @@ void QVector3DProperty::setValue(const QVariant &value)
QStringList tmpStrings = value.toString().split(","); QStringList tmpStrings = value.toString().split(",");
if (tmpStrings.count() == 3) if (tmpStrings.count() == 3)
{ {
setVector(tmpStrings[0].toFloat(), tmpStrings[1].toFloat(), tmpStrings[2].toFloat()); setVector(tmpStrings[0].toDouble(), tmpStrings[1].toDouble(), tmpStrings[2].toDouble());
} }
} }

View File

@ -70,7 +70,7 @@ public:
virtual void setVector(const Vector3D& vect); virtual void setVector(const Vector3D& vect);
//! Sets the Vector3d //! Sets the Vector3d
virtual void setVector(float x, float y, float z); virtual void setVector(double x, double y, double z);
//! Returns a string containing the type of the property //! Returns a string containing the type of the property
virtual QString type() const Q_DECL_OVERRIDE; virtual QString type() const Q_DECL_OVERRIDE;