mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 15:25:34 +08:00
minor UI adjustments
This commit is contained in:
@@ -66,10 +66,10 @@ namespace BlackGui
|
||||
CColumn col("type", CAtcStation::IndexIcon);
|
||||
col.setSortPropertyIndex({ CAtcStation::IndexCallsign, CCallsign::IndexSuffix });
|
||||
m_columns.addColumn(col);
|
||||
m_columns.addColumn(CColumn("xc.", "AFV cross coupled", CAtcStation::IndexIsAfvCrossCoupled, new CBoolIconFormatter("AFV cross coupled", "not coupled")));
|
||||
m_columns.addColumn(CColumn("distance", CAtcStation::IndexRelativeDistance, new CAirspaceDistanceFormatter()));
|
||||
m_columns.addColumn(CColumn("frequency", CAtcStation::IndexFrequency, new CComFrequencyFormatter()));
|
||||
m_columns.addColumn(CColumn("r.", "in range", CAtcStation::IndexIsInRange, new CBoolIconFormatter("in range", "outside range")));
|
||||
m_columns.addColumn(CColumn("xc.", "AFV cross coupled", CAtcStation::IndexIsAfvCrossCoupled, new CBoolIconFormatter("AFV cross coupled", "not coupled")));
|
||||
m_columns.addColumn(CColumn("range", CAtcStation::IndexRange, new CAirspaceDistanceFormatter()));
|
||||
m_columns.addColumnIncognito(CColumn::standardString("controllername", { CAtcStation::IndexController, CUser::IndexRealName }));
|
||||
m_columns.addColumn(CColumn("from", "booked from", CAtcStation::IndexBookedFrom, new CDateTimeFormatter(CDateTimeFormatter::formatHm())));
|
||||
|
||||
@@ -121,14 +121,14 @@ namespace BlackGui
|
||||
QString CColumns::propertyIndexToColumnName(const CPropertyIndex &propertyIndex, bool i18n) const
|
||||
{
|
||||
const int column = this->propertyIndexToColumn(propertyIndex);
|
||||
Q_UNUSED(i18n); // not implemented
|
||||
Q_UNUSED(i18n) // not implemented
|
||||
return m_columns.at(column).getColumnName();
|
||||
}
|
||||
|
||||
QString CColumns::columnToName(int column, bool i18n) const
|
||||
{
|
||||
Q_ASSERT(isValidColumn(column));
|
||||
Q_UNUSED(i18n); // not implemented
|
||||
Q_UNUSED(i18n) // not implemented
|
||||
return m_columns.at(column).getColumnName();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user