Desktop: Fix build for Qt6

This seems to be needed to make the build work with Qt6, which is needed for M1 based Macs.

Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
Michael Keller 2023-04-24 17:31:25 +12:00 committed by bstoeger
parent e60baff940
commit 15bf145f14
3 changed files with 6 additions and 6 deletions

View file

@ -91,11 +91,11 @@ QVariant LocationInformationModel::getDiveSiteData(const struct dive_site *ds, i
case Qt::DisplayRole:
switch(column) {
case DIVESITE: return QVariant::fromValue<dive_site *>((dive_site *)ds); // Not nice: casting away const
case NAME: return ds->name;
case NAME: return QString(ds->name);
case NUM_DIVES: return ds->dives.nr;
case LOCATION: return "TODO";
case DESCRIPTION: return ds->description;
case NOTES: return ds->name;
case DESCRIPTION: return QString(ds->description);
case NOTES: return QString(ds->name);
case TAXONOMY: return "TODO";
}
break;