Quasar.cpp   Quasar.cpp 
skipping to change at line 102 skipping to change at line 102
{ {
QString str; QString str;
QTextStream oss(&str); QTextStream oss(&str);
double mag = getVMagnitude(core); double mag = getVMagnitude(core);
if (flags&Name) if (flags&Name)
{ {
oss << "<h2>" << designation << "</h2>"; oss << "<h2>" << designation << "</h2>";
} }
if (flags&ObjectType) if (flags&ObjectType)
oss << q_("Type: <b>%1</b>").arg(q_("quasar")) << "<br />"; oss << QString("%1: <b>%2</b>").arg(q_("Type"), q_("quasar") ) << "<br />";
if (flags&Magnitude) if (flags&Magnitude)
{ {
QString emag = "";
if (core->getSkyDrawer()->getFlagHasAtmosphere()) if (core->getSkyDrawer()->getFlagHasAtmosphere())
{ emag = QString(" (%1: <b>%2</b>)").arg(q_("extincted
oss << q_("Magnitude: <b>%1</b> (extincted to: <b>%2 to"), QString::number(getVMagnitudeWithExtinction(core), 'f', 2));
</b>)").arg(QString::number(mag, 'f', 2),
oss << QString("%1: <b>%2</b>%3").arg(q_("Magnitude"), QStri
QString::number(getVMagnitudeWithExtinction(core), 'f', 2)) << ng::number(mag, 'f', 2), emag) << "<br />";
"<br />";
}
else
{
oss << q_("Magnitude: <b>%1</b>").arg(mag, 0, 'f', 2
) << "<br />";
}
if (AMagnitude!=0)
{
oss << q_("Absolute Magnitude: %1").arg(AMagnitude,
0, 'f', 2) << "<br />";
}
} }
if (flags&AbsoluteMagnitude && AMagnitude!=0)
oss << QString("%1: %2").arg(q_("Absolute Magnitude")).arg(A
Magnitude, 0, 'f', 2) << "<br />";
if (flags&Extra) if (flags&Extra)
{ oss << QString("%1: <b>%2</b>").arg(q_("Color Index (B-V)"),
oss << q_("Color Index (B-V): <b>%1</b>").arg(QString::numbe QString::number(bV, 'f', 2)) << "<br />";
r(bV, 'f', 2)) << "<br>";
}
// Ra/Dec etc. // Ra/Dec etc.
oss << getPositionInfoString(core, flags); oss << getCommonInfoString(core, flags);
if (flags&Extra) if (flags&Extra)
{ {
if (redshift>0) if (redshift>0)
{ oss << QString("%1: %2").arg(q_("Redshift")).arg(red
oss << q_("Z (redshift): %1").arg(redshift) << "<br shift) << "<br />";
/>";
}
} }
postProcessInfoString(str, flags); postProcessInfoString(str, flags);
return str; return str;
} }
QVariantMap Quasar::getInfoMap(const StelCore *core) const QVariantMap Quasar::getInfoMap(const StelCore *core) const
{ {
QVariantMap map = StelObject::getInfoMap(core); QVariantMap map = StelObject::getInfoMap(core);
 End of changes. 7 change blocks. 
27 lines changed or deleted 16 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/