Skip to content
Snippets Groups Projects
Commit 948b57f8 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Provide a proper size hint for the turn instruction pixmaps.

CCBUG: 298946
parent 37f046a2
No related branches found
No related tags found
No related merge requests found
......@@ -205,6 +205,13 @@ QVariant RoutingModel::data ( const QModelIndex & index, int role ) const
return QVariant();
}
break;
case Qt::SizeHintRole:
{
bool const smallScreen = MarbleGlobal::getInstance()->profiles() & MarbleGlobal::SmallScreen;
int const size = smallScreen ? 64 : 32;
return QSize( size, size );
}
break;
case RoutingModel::CoordinateRole:
return QVariant::fromValue( segment.maneuver().position() );
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment