|
|
@ -60,6 +60,7 @@ Item { |
|
|
|
property bool isDebug: ScreenToolsController.isDebug |
|
|
|
property bool isDebug: ScreenToolsController.isDebug |
|
|
|
property bool isTinyScreen: (Screen.width / Screen.pixelDensity) < 120 // 120mm |
|
|
|
property bool isTinyScreen: (Screen.width / Screen.pixelDensity) < 120 // 120mm |
|
|
|
property bool isShortScreen: ScreenToolsController.isMobile && ((Screen.height / Screen.width) < 0.6) // Nexus 7 for example |
|
|
|
property bool isShortScreen: ScreenToolsController.isMobile && ((Screen.height / Screen.width) < 0.6) // Nexus 7 for example |
|
|
|
|
|
|
|
property bool isHugeScreen: Screen.width >= 1920*2 |
|
|
|
|
|
|
|
|
|
|
|
readonly property real minTouchMillimeters: 10 ///< Minimum touch size in millimeters |
|
|
|
readonly property real minTouchMillimeters: 10 ///< Minimum touch size in millimeters |
|
|
|
property real minTouchPixels: 0 ///< Minimum touch size in pixels |
|
|
|
property real minTouchPixels: 0 ///< Minimum touch size in pixels |
|
|
@ -90,6 +91,10 @@ Item { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function printScreenStats() { |
|
|
|
|
|
|
|
console.log('ScreenTools: Screen.width: ' + Screen.width + ' Screen.height: ' + Screen.height + ' Screen.pixelDensity: ' + Screen.pixelDensity) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// Returns the current x position of the mouse in global screen coordinates. |
|
|
|
/// Returns the current x position of the mouse in global screen coordinates. |
|
|
|
function mouseX() { |
|
|
|
function mouseX() { |
|
|
|
return ScreenToolsController.mouseX() |
|
|
|
return ScreenToolsController.mouseX() |
|
|
|