Last active
August 29, 2015 14:22
-
-
Save marco-piccolino/5a3f742474519abbe0d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.4 | |
import QtQuick.Window 2.2 | |
import Material 0.1 | |
ApplicationWindow { | |
function fixDensity() { | |
var galaxyS3mini = | |
(Screen.width == 480) && | |
(Screen.height == 800) && | |
(Screen.pixelDensity.toFixed(2) == 6.31) && | |
(Screen.logicalPixelDensity.toFixed(2) == 4.25) | |
if (galaxyS3mini) { | |
Units.multiplier = 1.4 | |
} | |
} | |
Component.onCompleted: { | |
fixDensity() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment