Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qtquickcontrols-nemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
qtquickcontrols-nemo
Commits
c2d7f34a
Commit
c2d7f34a
authored
Apr 09, 2017
by
Chupligin Sergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Sizing] Fix dp scaling
parent
e0c708ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
sizing.cpp
src/controls/sizing.cpp
+9
-7
No files found.
src/controls/sizing.cpp
View file @
c2d7f34a
...
...
@@ -71,27 +71,29 @@ void Sizing::setDpScaleFactor()
{
switch
(
m_densitie
)
{
case
ldpi
:
m_dp_factor
=
0.
7
5
;
m_dp_factor
=
0.5
;
break
;
case
mdpi
:
m_dp_factor
=
1
;
m_dp_factor
=
0.6
;
break
;
case
hdpi
:
m_dp_factor
=
1
.5
;
m_dp_factor
=
1
;
break
;
case
xhdpi
:
m_dp_factor
=
2
;
m_dp_factor
=
1.3
;
break
;
case
xxhdpi
:
m_dp_factor
=
3
;
m_dp_factor
=
2
;
break
;
case
xxxhdpi
:
m_dp_factor
=
4
;
m_dp_factor
=
2.5
;
break
;
default:
m_dp_factor
=
1
;
m_dp_factor
=
1
.3
;
break
;
}
qDebug
()
<<
"DP scale factor is "
<<
m_dp_factor
;
}
float
Sizing
::
mm
(
float
value
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment