Commit d07db042 authored by Oliver Bock's avatar Oliver Bock

Various type fixes

parent 9d602082
......@@ -412,7 +412,7 @@ void PulsarAnimationWidget::paintGL()
void PulsarAnimationWidget::runAnimation()
{
m_frameTimer.start(1000.0 / m_framesPerSecond);
m_frameTimer.start(qRound(1000.0 / m_framesPerSecond));
}
void PulsarAnimationWidget::pauseAnimation()
......
......@@ -106,8 +106,8 @@ private:
double m_companionMass;
double m_companionSemiMajorAxis;
int m_pulsarSpinAxisInclination;
int m_pulsarMagneticAxisInclination;
double m_pulsarSpinAxisInclination;
double m_pulsarMagneticAxisInclination;
bool m_showOrbits;
bool m_showRotationAxes;
......@@ -115,8 +115,8 @@ private:
int m_mouseLastX;
int m_mouseLastY;
int m_mouseAngleH;
int m_mouseAngleV;
double m_mouseAngleH;
double m_mouseAngleV;
double m_cameraZoom;
double m_cameraZoomLBound;
double m_cameraZoomUBound;
......
......@@ -422,7 +422,7 @@ void PulsatingScience::on_actionAbout_triggered()
void PulsatingScience::updatePulsarSemiMajorAxisValue(double value)
{
ui.sliderPulsarSemiMajorAxis->setValue(value * 1000.0);
ui.sliderPulsarSemiMajorAxis->setValue(qRound(value * 1000.0));
if((int)value <= 1 || (int)value >= 20) {
if((int)value < 1 || (int)value > 20) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment