Skip to content
Snippets Groups Projects
Commit d07db042 authored by Oliver Bock's avatar Oliver Bock
Browse files

Various type fixes

parent 9d602082
No related branches found
No related tags found
No related merge requests found
...@@ -412,7 +412,7 @@ void PulsarAnimationWidget::paintGL() ...@@ -412,7 +412,7 @@ void PulsarAnimationWidget::paintGL()
void PulsarAnimationWidget::runAnimation() void PulsarAnimationWidget::runAnimation()
{ {
m_frameTimer.start(1000.0 / m_framesPerSecond); m_frameTimer.start(qRound(1000.0 / m_framesPerSecond));
} }
void PulsarAnimationWidget::pauseAnimation() void PulsarAnimationWidget::pauseAnimation()
......
...@@ -106,8 +106,8 @@ private: ...@@ -106,8 +106,8 @@ private:
double m_companionMass; double m_companionMass;
double m_companionSemiMajorAxis; double m_companionSemiMajorAxis;
int m_pulsarSpinAxisInclination; double m_pulsarSpinAxisInclination;
int m_pulsarMagneticAxisInclination; double m_pulsarMagneticAxisInclination;
bool m_showOrbits; bool m_showOrbits;
bool m_showRotationAxes; bool m_showRotationAxes;
...@@ -115,8 +115,8 @@ private: ...@@ -115,8 +115,8 @@ private:
int m_mouseLastX; int m_mouseLastX;
int m_mouseLastY; int m_mouseLastY;
int m_mouseAngleH; double m_mouseAngleH;
int m_mouseAngleV; double m_mouseAngleV;
double m_cameraZoom; double m_cameraZoom;
double m_cameraZoomLBound; double m_cameraZoomLBound;
double m_cameraZoomUBound; double m_cameraZoomUBound;
......
...@@ -422,7 +422,7 @@ void PulsatingScience::on_actionAbout_triggered() ...@@ -422,7 +422,7 @@ void PulsatingScience::on_actionAbout_triggered()
void PulsatingScience::updatePulsarSemiMajorAxisValue(double value) 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) {
if((int)value < 1 || (int)value > 20) { if((int)value < 1 || (int)value > 20) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment