Commit c2d7f34a authored by Chupligin Sergey's avatar Chupligin Sergey

[Sizing] Fix dp scaling

parent e0c708ff
...@@ -71,27 +71,29 @@ void Sizing::setDpScaleFactor() ...@@ -71,27 +71,29 @@ void Sizing::setDpScaleFactor()
{ {
switch (m_densitie) { switch (m_densitie) {
case ldpi: case ldpi:
m_dp_factor = 0.75; m_dp_factor = 0.5;
break; break;
case mdpi: case mdpi:
m_dp_factor = 1; m_dp_factor = 0.6;
break; break;
case hdpi: case hdpi:
m_dp_factor = 1.5; m_dp_factor = 1;
break; break;
case xhdpi: case xhdpi:
m_dp_factor = 2; m_dp_factor = 1.3;
break; break;
case xxhdpi: case xxhdpi:
m_dp_factor = 3; m_dp_factor = 2;
break; break;
case xxxhdpi: case xxxhdpi:
m_dp_factor = 4; m_dp_factor = 2.5;
break; break;
default: default:
m_dp_factor = 1; m_dp_factor = 1.3;
break; break;
} }
qDebug() << "DP scale factor is " << m_dp_factor;
} }
float Sizing::mm(float value) float Sizing::mm(float value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment