summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkarsh Simha <akarsh@kde.org>2016-09-30 09:49:56 (GMT)
committerAkarsh Simha <akarsh@kde.org>2016-09-30 09:51:27 (GMT)
commit74541e1bf7052ea403ec4d5ae3c717cc687d8292 (patch)
tree971aa6179fcb859b25e6e848be88724162c473f0
parente2a39fe8c13a48274a2b09f8994fa1373d03e486 (diff)
New colum in the Wish List view for the new workflow: Current Altitude
-rw-r--r--kstars/tools/observinglist.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/kstars/tools/observinglist.cpp b/kstars/tools/observinglist.cpp
index bbf33db..13fe0ba 100644
--- a/kstars/tools/observinglist.cpp
+++ b/kstars/tools/observinglist.cpp
@@ -125,6 +125,7 @@ ObservingList::ObservingList()
<< i18nc( "Declination", "Dec" )
<< i18nc( "Magnitude", "Mag" )
<< i18n( "Type" )
+ << i18n( "Current Altitude" )
);
m_SessionModel->setHorizontalHeaderLabels(
QStringList() << i18n( "Name" )
@@ -325,6 +326,7 @@ void ObservingList::slotAddObject( SkyObject *obj, bool session, bool update ) {
//dec = p.dec().toDMSString();
populateItemList();
+ itemList << new QStandardItem( QString::number( p.alt().Degrees(), 'f', 2 ) );
m_WishListModel->appendRow( itemList );
//Note addition in statusbar