Commit 99841a79 authored by Akarsh Simha's avatar Akarsh Simha

Cosmetic: Reorganize code in a more readable manner.

parent de546365
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment