summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkarsh Simha <akarsh@kde.org>2016-09-30 09:46:26 (GMT)
committerAkarsh Simha <akarsh@kde.org>2016-09-30 09:51:27 (GMT)
commit99841a79284eaba6254d45b3219e7c86027cc425 (patch)
tree8bc2a6559862b441c74359dfcbc8b0c0c93684e3
parentde5463654e306a8b52db46c7d76571afd2ba1213 (diff)
Cosmetic: Reorganize code in a more readable manner.
-rw-r--r--kstars/tools/observinglist.cpp38
1 files changed, 22 insertions, 16 deletions
diff --git a/kstars/tools/observinglist.cpp b/kstars/tools/observinglist.cpp
index 7a42e8b..2e40813 100644
--- a/kstars/tools/observinglist.cpp
+++ b/kstars/tools/observinglist.cpp
@@ -117,22 +117,28 @@ ObservingList::ObservingList()
//Set up the Table Views
m_WishListModel = new QStandardItemModel( 0, 5, this );
m_SessionModel = new QStandardItemModel( 0, 5 );
- m_WishListModel->setHorizontalHeaderLabels( QStringList() << i18n( "Name" )
- << i18n( "Alternate Name" )
- << i18nc( "Right Ascension", "RA" )
- << i18nc( "Declination", "Dec" )
- << i18nc( "Magnitude", "Mag" )
- << i18n( "Type" ) );
- m_SessionModel->setHorizontalHeaderLabels( QStringList() << i18n( "Name" )
- << i18n( "Alternate Name" )
- << i18nc( "Right Ascension", "RA" )
- << i18nc( "Declination", "Dec" )
- << i18nc( "Magnitude", "Mag" )
- << i18n( "Type" )
- << i18nc( "Constellation", "Constell." )
- << i18n( "Time" )
- << i18nc( "Altitude", "Alt" )
- << i18nc( "Azimuth", "Az" ));
+
+ m_WishListModel->setHorizontalHeaderLabels(
+ QStringList() << i18n( "Name" )
+ << i18n( "Alternate Name" )
+ << i18nc( "Right Ascension", "RA" )
+ << i18nc( "Declination", "Dec" )
+ << i18nc( "Magnitude", "Mag" )
+ << i18n( "Type" )
+ );
+ m_SessionModel->setHorizontalHeaderLabels(
+ QStringList() << i18n( "Name" )
+ << i18n( "Alternate Name" )
+ << i18nc( "Right Ascension", "RA" )
+ << i18nc( "Declination", "Dec" )
+ << i18nc( "Magnitude", "Mag" )
+ << i18n( "Type" )
+ << i18nc( "Constellation", "Constell." )
+ << i18n( "Time" )
+ << i18nc( "Altitude", "Alt" )
+ << i18nc( "Azimuth", "Az" )
+ );
+
m_WishListSortModel = new QSortFilterProxyModel( this );
m_WishListSortModel->setSourceModel( m_WishListModel );
m_WishListSortModel->setDynamicSortFilter( true );