summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkarsh Simha <akarsh@kde.org>2016-10-02 10:22:31 (GMT)
committerAkarsh Simha <akarsh@kde.org>2016-10-02 12:35:57 (GMT)
commitcec7c8f99cbfcd1561a5feeda626dc9861c96081 (patch)
tree54db98878f8e13705b1bf1ccc9365fac7fad7c88
parentc990d40965b423bce2f80cdb86cb6b64c4f36372 (diff)
Fix missing columns in Session View. Also show J2000 coords instead.
-rw-r--r--kstars/tools/observinglist.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/kstars/tools/observinglist.cpp b/kstars/tools/observinglist.cpp
index c83df77..c0944cd 100644
--- a/kstars/tools/observinglist.cpp
+++ b/kstars/tools/observinglist.cpp
@@ -122,8 +122,8 @@ ObservingList::ObservingList()
m_WishListModel->setHorizontalHeaderLabels(
QStringList() << i18n( "Name" )
<< i18n( "Alternate Name" )
- << i18nc( "Right Ascension", "RA" )
- << i18nc( "Declination", "Dec" )
+ << i18nc( "Right Ascension", "RA (J2000)" )
+ << i18nc( "Declination", "Dec (J2000)" )
<< i18nc( "Magnitude", "Mag" )
<< i18n( "Type" )
<< i18n( "Current Altitude" )
@@ -131,8 +131,8 @@ ObservingList::ObservingList()
m_SessionModel->setHorizontalHeaderLabels(
QStringList() << i18n( "Name" )
<< i18n( "Alternate Name" )
- << i18nc( "Right Ascension", "RA" )
- << i18nc( "Declination", "Dec" )
+ << i18nc( "Right Ascension", "RA (J2000)" )
+ << i18nc( "Declination", "Dec (J2000)" )
<< i18nc( "Magnitude", "Mag" )
<< i18n( "Type" )
<< i18nc( "Constellation", "Constell." )
@@ -344,8 +344,8 @@ void ObservingList::slotAddObject( SkyObject *obj, bool session, bool update ) {
keyItem->setData( QVariant::fromValue<void *>( static_cast<void *>( obj ) ), Qt::UserRole + 1 );
itemList << keyItem // NOTE: The rest of the methods assume that the SkyObject pointer is available in the first column!
<< getItemWithUserRole( obj->translatedLongName() )
- << getItemWithUserRole( p.ra().toHMSString() )
- << getItemWithUserRole( p.dec().toDMSString() )
+ << getItemWithUserRole( p.ra0().toHMSString() )
+ << getItemWithUserRole( p.dec0().toDMSString() )
<< getItemWithUserRole( smag )
<< getItemWithUserRole( obj->typeName() );
};
@@ -380,7 +380,6 @@ void ObservingList::slotAddObject( SkyObject *obj, bool session, bool update ) {
dt.setTime( TimeHash.value( finalObjectName, obj->transitTime( dt, geo ) ) );
dms lst(geo->GSTtoLST( dt.gst() ));
p.EquatorialToHorizontal( &lst, geo->lat() );
- QList<QStandardItem*> itemList;
QString ra, dec, time = "--", alt = "--", az = "--";