1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 17:28:50 -05:00

align text right in satellite tracker table for numerical columns

This commit is contained in:
DreamNik 2021-09-01 21:03:43 +03:00
parent 82c2a1c775
commit 9071770a86

View File

@ -1114,6 +1114,12 @@ void SatelliteTrackerGUI::updateTable(SatelliteState *satState)
SatNogsSatellite *sat = m_satellites.value(satState->m_name);
items[SAT_COL_NORAD_ID]->setData(Qt::DisplayRole, sat->m_noradCatId);
}
// Text alignment
for( int col : {SAT_COL_AZ, SAT_COL_EL, SAT_COL_TNE, SAT_COL_DUR, SAT_COL_MAX_EL,
SAT_COL_ALT, SAT_COL_RANGE, SAT_COL_RANGE_RATE, SAT_COL_DOPPLER,
SAT_COL_PATH_LOSS, SAT_COL_DELAY})
items[col]->setTextAlignment(Qt::AlignRight|Qt::AlignVCenter);
}
else
{