mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
refs #538, Formatting, minor tweaks, comments
* new slot syntax in ATC station component * formatting, comments * tab order * utility function for severity in status message * null checks in threadutils * invalidKey function in datastore * changed data object keys (cached objets) * added missing value object compare cases * renamed timer in context network * finder function for model list * renamed getContainer to container (as it is just a reference)
This commit is contained in:
@@ -94,14 +94,14 @@ namespace BlackGui
|
||||
QStandardItemModel *model = new QStandardItemModel();
|
||||
if (this->isEmpty()) { return model; }
|
||||
model->setColumnCount(4);
|
||||
QMap<QString, int> types = this->getContainer().getSuffixes();
|
||||
QMap<QString, int> types = this->container().getSuffixes();
|
||||
for (const QString &type : types.keys())
|
||||
{
|
||||
// ownership of QStandardItem is taken by model
|
||||
QStandardItem *typeFolderFirstColumn = new QStandardItem(CCallsign::atcSuffixToIcon(type).toQIcon(), type);
|
||||
QList<QStandardItem *> typeFolderRow { typeFolderFirstColumn };
|
||||
model->invisibleRootItem()->appendRow(typeFolderRow);
|
||||
CAtcStationList stations = this->getContainer().findBySuffix(type);
|
||||
CAtcStationList stations = this->container().findBySuffix(type);
|
||||
for (const CAtcStation &station : stations)
|
||||
{
|
||||
QList<QStandardItem *> stationRow;
|
||||
|
||||
Reference in New Issue
Block a user