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:
Klaus Basan
2014-06-10 02:05:44 +02:00
parent 9ea1fd86ef
commit 56430c860a
9 changed files with 59 additions and 34 deletions

View File

@@ -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: