2021-07-28 16:13:29 +07:00
|
|
|
pragma Singleton
|
2022-10-20 20:09:17 +01:00
|
|
|
import QtQuick
|
2021-07-28 16:13:29 +07:00
|
|
|
|
|
|
|
|
Item {
|
|
|
|
|
readonly property string screenHome: "qrc:/ScreenHome.qml"
|
|
|
|
|
readonly property string screenHomeIntroGifEx1: "qrc:/ScreenHomeIntroGifEx1.qml"
|
|
|
|
|
|
|
|
|
|
readonly property int screenWidth: 380
|
2023-01-08 23:10:46 +00:00
|
|
|
readonly property int screenHeight: 680
|
2021-07-28 16:13:29 +07:00
|
|
|
|
2023-01-07 13:40:35 +00:00
|
|
|
readonly property int defaultMargin: 20
|
|
|
|
|
|
2021-07-28 16:13:29 +07:00
|
|
|
function isMobile() {
|
2023-07-31 14:29:49 +09:00
|
|
|
if (Qt.platform.os === "android" ||
|
|
|
|
|
Qt.platform.os === "ios") {
|
2021-07-28 16:13:29 +07:00
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function isDesktop() {
|
2023-07-31 14:29:49 +09:00
|
|
|
if (Qt.platform.os === "windows" ||
|
|
|
|
|
Qt.platform.os === "linux" ||
|
|
|
|
|
Qt.platform.os === "osx") {
|
2021-07-28 16:13:29 +07:00
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
2023-10-14 23:59:46 +01:00
|
|
|
|
|
|
|
|
TextEdit{
|
|
|
|
|
id: clipboard
|
|
|
|
|
visible: false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function copyToClipBoard(text) {
|
|
|
|
|
clipboard.text = text
|
|
|
|
|
clipboard.selectAll()
|
|
|
|
|
clipboard.copy()
|
|
|
|
|
clipboard.select(0, 0)
|
|
|
|
|
}
|
2021-07-28 16:13:29 +07:00
|
|
|
}
|