feature: added ui for DefaultVPN
This commit is contained in:
parent
d06924c59d
commit
2cfdc1df64
25 changed files with 1444 additions and 4 deletions
37
client/ui/qml/DefaultVpn/Config/DeviceInfo.qml
Normal file
37
client/ui/qml/DefaultVpn/Config/DeviceInfo.qml
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
pragma Singleton
|
||||
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
readonly property int screenWidth: 380
|
||||
readonly property int screenHeight: 680
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
TextEdit {
|
||||
id: clipboard
|
||||
visible: false
|
||||
}
|
||||
|
||||
function copyToClipBoard(text) {
|
||||
clipboard.text = text
|
||||
clipboard.selectAll()
|
||||
clipboard.copy()
|
||||
clipboard.select(0, 0)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue