amnezia-client/client/ui/qml/Config/GlobalConfig.qml
Hamza ARBI cc3d9e0d2d Fix all QML headers and change the deprecated QML components
* QZXing : Error while integrating it
2022-10-20 20:09:17 +01:00

43 lines
856 B
QML

pragma Singleton
import QtQuick
Item {
readonly property string screenHome: "qrc:/ScreenHome.qml"
readonly property string screenHomeIntroGifEx1: "qrc:/ScreenHomeIntroGifEx1.qml"
readonly property int screenWidth: 380
readonly property int screenHeight: 640
function isMobile() {
if (Qt.platform.os == "android" ||
Qt.platform.os == "ios") {
return true
}
return false
}
function isDesktop() {
if (Qt.platform.os == "windows" ||
Qt.platform.os == "linux" ||
Qt.platform.os == "osx") {
return true
}
return false
}
function trX(x) {
return x
}
function trY(y) {
return y
}
function trW(w) {
return w
}
function trH(h) {
return h
}
}