2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2020-05-27 21:28:25 +00:00
|
|
|
import "../../../../imports"
|
2020-06-19 18:06:58 +00:00
|
|
|
import "../../../../shared"
|
2020-05-27 21:28:25 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
id: syncContainer
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-05-27 21:28:25 +00:00
|
|
|
id: element4
|
2020-07-06 20:39:55 +00:00
|
|
|
//% "Sync settings"
|
|
|
|
text: qsTrId("sync-settings")
|
2020-05-27 21:28:25 +00:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 24
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 24
|
|
|
|
font.weight: Font.Bold
|
|
|
|
font.pixelSize: 20
|
|
|
|
}
|
|
|
|
|
|
|
|
Component {
|
|
|
|
id: mailserversList
|
2020-09-15 11:21:23 +00:00
|
|
|
|
2020-05-27 21:28:25 +00:00
|
|
|
RadioButton {
|
2020-09-15 11:21:23 +00:00
|
|
|
id: control
|
|
|
|
indicator: Rectangle {
|
|
|
|
implicitWidth: 26
|
|
|
|
implicitHeight: 26
|
|
|
|
x: control.leftPadding
|
|
|
|
y: parent.height / 2 - height / 2
|
|
|
|
radius: 13
|
|
|
|
border.color: control.down ? "#17a81a" : "#21be2b"
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
width: 14
|
|
|
|
height: 14
|
|
|
|
x: 6
|
|
|
|
y: 6
|
|
|
|
radius: 7
|
|
|
|
color: control.down ? "#17a81a" : "#21be2b"
|
|
|
|
visible: control.checked
|
|
|
|
}
|
|
|
|
}
|
|
|
|
contentItem: StyledText {
|
|
|
|
text: name
|
|
|
|
color: Style.current.textColor
|
|
|
|
leftPadding: control.indicator.width + control.spacing
|
|
|
|
}
|
2020-06-17 19:18:31 +00:00
|
|
|
checked: index == 0 ? true: false
|
2020-05-27 21:28:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ListView {
|
|
|
|
id: mailServersListView
|
|
|
|
anchors.topMargin: 48
|
|
|
|
anchors.top: element4.bottom
|
|
|
|
anchors.fill: parent
|
|
|
|
model: profileModel.mailserversList
|
|
|
|
delegate: mailserversList
|
|
|
|
}
|
|
|
|
}
|