Skip to content

Instantly share code, notes, and snippets.

@marco-piccolino
Last active August 29, 2015 14:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marco-piccolino/5a3f742474519abbe0d8 to your computer and use it in GitHub Desktop.
Save marco-piccolino/5a3f742474519abbe0d8 to your computer and use it in GitHub Desktop.
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