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
bb12283f
Commit
bb12283f
authored
Jan 26, 2009
by
Oliver Bock
Browse files
Optimized visualization of capped values
parent
e27978d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pulsatingscience.cpp
View file @
bb12283f
...
...
@@ -166,8 +166,13 @@ void PulsatingScience::updatePulsarSemiMajorAxisValue(double value)
{
ui
.
sliderPulsarSemiMajorAxis
->
setValue
(
value
*
1000.0
);
if
(
value
<
1.0
||
value
>
20.0
)
{
ui
.
lcdPulsarSemiMajorAxis
->
setStyleSheet
(
"color: red"
);
if
((
int
)
value
<=
1
||
(
int
)
value
>=
20
)
{
if
((
int
)
value
<
1
||
(
int
)
value
>
20
)
{
ui
.
lcdPulsarSemiMajorAxis
->
setStyleSheet
(
"color: red"
);
}
else
{
ui
.
lcdPulsarSemiMajorAxis
->
setStyleSheet
(
"color: black"
);
}
ui
.
lcdPulsarSemiMajorAxis
->
display
(
QString
::
number
(
value
,
'f'
,
1
));
}
}
Write
Preview
Supports
Markdown
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