[Kstars-devel] KDE/kdeedu/kstars/kstars
Akarsh Simha
akarshsimha at gmail.com
Wed Oct 15 12:18:58 CEST 2008
SVN commit 871616 by asimha:
Show the HD number of stars in the Details dialog.
CCMAIL: kstars-devel at kde.org
M +5 -0 detaildialog.cpp
--- trunk/KDE/kdeedu/kstars/kstars/detaildialog.cpp #871615:871616
@@ -115,6 +115,11 @@
s = (StarObject *)selectedObject;
Data->Names->setText( s->longname() );
+ if( s->getHDIndex() != 0 )
+ if( !s->longname().isEmpty() )
+ Data->Names->setText( s->longname() + QString( ", HD%1" ).arg( QString::number( s->getHDIndex() ) ) );
+ else
+ Data->Names->setText( QString( ", HD%1" ).arg( QString::number( s->getHDIndex() ) ) );
Data->Type->setText( s->sptype() + ' ' + i18n("star") );
Data->Magnitude->setText( i18nc( "number in magnitudes", "%1 mag" ,
KGlobal::locale()->formatNumber( s->mag(), 1 ) ) ); //show to tenths place
More information about the Kstars-devel
mailing list