[Kstars-devel] kdeedu/kstars/kstars/tools
Jason Harris
kstars at 30doradus.org
Sun May 1 17:55:06 CEST 2005
CVS commit by harris:
Show "--" in Observing List when mag is undefined. Thanks Jasem.
TODO: sort by magnitude should sort numerically, not by string value.
CCMAIL: kstars-devel at kde.org
M +3 -1 observinglist.cpp 1.13
--- kdeedu/kstars/kstars/tools/observinglist.cpp #1.12:1.13
@@ -118,8 +118,10 @@ void ObservingList::slotAddObject( SkyOb
//Insert object entry in table
+ QString smag("--");
+ if ( obj->mag() < 90.0 ) smag = QString::number( obj->mag(), 'g', 2 );
new KListViewItem( ui->table, obj->translatedName(),
obj->ra()->toHMSString(),
obj->dec()->toDMSString(),
- QString::number( obj->mag(), 'g', 2 ),
+ smag,
obj->typeName() );
More information about the Kstars-devel
mailing list