Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Education
KStars
Commits
daea47ed
Commit
daea47ed
authored
Nov 05, 2013
by
Jasem Mutlaq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG:326647 REVIEW:113438
parent
37bc667d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
kstars/dialogs/detaildialog.cpp
kstars/dialogs/detaildialog.cpp
+9
-3
kstars/skycomponents/cometscomponent.cpp
kstars/skycomponents/cometscomponent.cpp
+1
-1
No files found.
kstars/dialogs/detaildialog.cpp
View file @
daea47ed
...
...
@@ -206,9 +206,15 @@ void DetailDialog::createGeneralTab()
Data
->
Illumination
->
setText
(
QString
(
"%1 %"
).
arg
(
KGlobal
::
locale
()
->
formatNumber
(
((
KSMoon
*
)
selectedObject
)
->
illum
()
*
100.
,
0
)
)
);
}
Data
->
Magnitude
->
setText
(
i18nc
(
"number in magnitudes"
,
"%1 mag"
,
KGlobal
::
locale
()
->
formatNumber
(
ps
->
mag
(),
1
)
)
);
//show to tenths place
if
(
selectedObject
->
type
()
==
SkyObject
::
COMET
){
Data
->
Magnitude
->
setText
(
i18nc
(
"number in magnitudes"
,
"%1 mag"
,
KGlobal
::
locale
()
->
formatNumber
(
((
KSComet
*
)
selectedObject
)
->
getTotalMagnitudeParameter
(),
1
)
)
);
//show to tenths place
}
else
{
Data
->
Magnitude
->
setText
(
i18nc
(
"number in magnitudes"
,
"%1 mag"
,
KGlobal
::
locale
()
->
formatNumber
(
ps
->
mag
(),
1
)
)
);
//show to tenths place
}
//Distance from Earth. The moon requires a unit conversion
if
(
ps
->
name
()
==
"Moon"
)
{
Data
->
Distance
->
setText
(
i18nc
(
"distance in kilometers"
,
"%1 km"
,
...
...
kstars/skycomponents/cometscomponent.cpp
View file @
daea47ed
...
...
@@ -192,7 +192,7 @@ void CometsComponent::draw( SkyPainter *skyp )
foreach
(
SkyObject
*
so
,
m_ObjectList
)
{
KSComet
*
com
=
(
KSComet
*
)
so
;
bool
drawn
=
skyp
->
drawPointSource
(
com
,
com
->
mag
());
bool
drawn
=
skyp
->
drawPointSource
(
com
,
com
->
getTotalMagnitudeParameter
());
if
(
drawn
&&
!
(
hideLabels
||
com
->
rsun
()
>=
rsunLabelLimit
)
)
SkyLabeler
::
AddLabel
(
com
,
SkyLabeler
::
COMET_LABEL
);
}
...
...
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