Share page reimpl
This commit is contained in:
parent
a89104127a
commit
396af917b5
12 changed files with 298 additions and 286 deletions
|
|
@ -31,18 +31,101 @@ PageShareProtocolBase {
|
|||
anchors.right: root.right
|
||||
anchors.rightMargin: 30
|
||||
|
||||
contentHeight: content.height
|
||||
contentHeight: content.height + content2.height + 40
|
||||
clip: true
|
||||
|
||||
ColumnLayout {
|
||||
GridLayout {
|
||||
id: content
|
||||
enabled: logic.pageEnabled
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
||||
columns: 2
|
||||
|
||||
//
|
||||
LabelType {
|
||||
height: 20
|
||||
text: qsTr("Server:")
|
||||
}
|
||||
TextFieldType {
|
||||
height: 20
|
||||
text: ShareConnectionLogic.labelShareShadowSocksServerText
|
||||
readOnly: true
|
||||
}
|
||||
|
||||
//
|
||||
LabelType {
|
||||
height: 20
|
||||
text: qsTr("Port:")
|
||||
}
|
||||
TextFieldType {
|
||||
height: 20
|
||||
text: ShareConnectionLogic.labelShareShadowSocksPortText
|
||||
readOnly: true
|
||||
}
|
||||
|
||||
//
|
||||
LabelType {
|
||||
height: 20
|
||||
text: qsTr("Password")
|
||||
}
|
||||
TextFieldType {
|
||||
height: 20
|
||||
text: ShareConnectionLogic.labelShareShadowSocksPasswordText
|
||||
readOnly: true
|
||||
}
|
||||
|
||||
//
|
||||
LabelType {
|
||||
height: 20
|
||||
text: qsTr("Encryption:")
|
||||
}
|
||||
TextFieldType {
|
||||
height: 20
|
||||
text: ShareConnectionLogic.labelShareShadowSocksMethodText
|
||||
readOnly: true
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
ColumnLayout {
|
||||
id: content2
|
||||
enabled: logic.pageEnabled
|
||||
anchors.top: content.bottom
|
||||
anchors.topMargin: 20
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
||||
LabelType {
|
||||
height: 20
|
||||
text: qsTr("Connection string")
|
||||
}
|
||||
TextFieldType {
|
||||
id: tfConnString
|
||||
height: 100
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
Layout.fillWidth: true
|
||||
text: ShareConnectionLogic.lineEditShareShadowSocksStringText
|
||||
readOnly: true
|
||||
}
|
||||
ShareConnectionButtonType {
|
||||
height: 40
|
||||
Layout.fillWidth: true
|
||||
text: ShareConnectionLogic.pushButtonShareShadowSocksCopyText
|
||||
enabled: tfConnString.length > 0
|
||||
onClicked: {
|
||||
ShareConnectionLogic.onPushButtonShareShadowSocksCopyClicked()
|
||||
}
|
||||
}
|
||||
|
||||
Image {
|
||||
id: label_share_ss_qr_code
|
||||
Layout.topMargin: 20
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: width
|
||||
smooth: false
|
||||
source: ShareConnectionLogic.labelShareShadowSocksQrCodeText
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue