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

@ -54,7 +54,7 @@ QVariant YearStatisticsItem::data(int column, int role) const
switch (column) {
case YEAR:
if (stats_interval.is_trip) {
ret = stats_interval.location;
ret = QString(stats_interval.location);
} else {
ret = stats_interval.period;
}