mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
divetripmodel: explicitly convert char * to QString
The automatic conversion from char * to QVariant failed to compile for me. Let's hint that this should be interpreted as a string. No idea, why this happens for me, but apparently not on CI. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
43ec3fc1d9
commit
9509eb6876
1 changed files with 3 additions and 3 deletions
|
@ -287,13 +287,13 @@ QVariant DiveTripModelBase::diveData(const struct dive *d, int column, int role)
|
||||||
formatDiveDuration(d));
|
formatDiveDuration(d));
|
||||||
case MobileListModel::RatingRole: return d->rating;
|
case MobileListModel::RatingRole: return d->rating;
|
||||||
case MobileListModel::VizRole: return d->visibility;
|
case MobileListModel::VizRole: return d->visibility;
|
||||||
case MobileListModel::SuitRole: return d->suit;
|
case MobileListModel::SuitRole: return QString(d->suit);
|
||||||
case MobileListModel::AirTempRole: return get_temperature_string(d->airtemp, true);
|
case MobileListModel::AirTempRole: return get_temperature_string(d->airtemp, true);
|
||||||
case MobileListModel::WaterTempRole: return get_temperature_string(d->watertemp, true);
|
case MobileListModel::WaterTempRole: return get_temperature_string(d->watertemp, true);
|
||||||
case MobileListModel::SacRole: return formatSac(d);
|
case MobileListModel::SacRole: return formatSac(d);
|
||||||
case MobileListModel::SumWeightRole: return formatSumWeight(d);
|
case MobileListModel::SumWeightRole: return formatSumWeight(d);
|
||||||
case MobileListModel::DiveGuideRole: return d->diveguide;
|
case MobileListModel::DiveGuideRole: return QString(d->diveguide);
|
||||||
case MobileListModel::BuddyRole: return d->buddy;
|
case MobileListModel::BuddyRole: return QString(d->buddy);
|
||||||
case MobileListModel::TagsRole: return get_taglist_string(d->tag_list);
|
case MobileListModel::TagsRole: return get_taglist_string(d->tag_list);
|
||||||
case MobileListModel::NotesRole: return formatNotes(d);
|
case MobileListModel::NotesRole: return formatNotes(d);
|
||||||
case MobileListModel::GpsRole: return formatDiveGPS(d);
|
case MobileListModel::GpsRole: return formatDiveGPS(d);
|
||||||
|
|
Loading…
Reference in a new issue