mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
refs #264, QPixmap enable list model base to simplify columns with icons
* new constructor in column class * removed overridden data method, no longer needed * added icons for ATC station views * QPixmap comparison for such columns (free functions)
This commit is contained in:
@@ -236,7 +236,8 @@ namespace BlackMisc
|
||||
/*
|
||||
* Frequency
|
||||
*/
|
||||
void CAtcStation::setFrequency(const CFrequency &frequency) {
|
||||
void CAtcStation::setFrequency(const CFrequency &frequency)
|
||||
{
|
||||
this->m_frequency = frequency;
|
||||
this->m_frequency.setUnit(CFrequencyUnit::MHz());
|
||||
}
|
||||
@@ -318,6 +319,8 @@ namespace BlackMisc
|
||||
return QVariant(this->m_callsign.asString());
|
||||
case IndexCallsignAsStringAsSet:
|
||||
return QVariant(this->m_callsign.getStringAsSet());
|
||||
case IndexCallsignIcon:
|
||||
return QVariant(this->m_callsign.toIcon());
|
||||
case IndexController:
|
||||
return this->m_controller.toQVariant();
|
||||
case IndexControllerRealName:
|
||||
|
||||
Reference in New Issue
Block a user