styledpilotdelegate.cpp 330 B

12345678910111213
  1. #include "styledpilotdelegate.h"
  2. #include "src/database/databasecache.h"
  3. StyledPilotDelegate::StyledPilotDelegate(QObject *parent)
  4. : QStyledItemDelegate{parent}
  5. {
  6. }
  7. QString StyledPilotDelegate::displayText(const QVariant &value, const QLocale &locale) const
  8. {
  9. return DBCache->getPilotNamesMap().value(value.toInt());
  10. }