Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Marble
Manage
Activity
Members
Labels
Plan
Issues
12
Issue boards
Milestones
Wiki
Bugzilla
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Education
Marble
Commits
948b57f8
Commit
948b57f8
authored
12 years ago
by
Dennis Nienhüser
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/routing/RoutingModel.cpp
+7
-0
7 additions, 0 deletions
src/lib/routing/RoutingModel.cpp
with
7 additions
and
0 deletions
src/lib/routing/RoutingModel.cpp
+
7
−
0
View file @
948b57f8
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment