Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
einsteinathome
pulsatingscience
Commits
d07db042
Commit
d07db042
authored
Feb 20, 2009
by
Oliver Bock
Browse files
Various type fixes
parent
9d602082
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/pulsaranimationwidget.cpp
View file @
d07db042
...
@@ -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
()
...
...
src/pulsaranimationwidget.h
View file @
d07db042
...
@@ -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
;
...
...
src/pulsatingscience.cpp
View file @
d07db042
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment