Add autostart parameter in advanced settings
This commit is contained in:
parent
2fdddf942f
commit
351199d163
4 changed files with 41 additions and 16 deletions
|
|
@ -6,8 +6,8 @@ import Linphone
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
id: mainItem
|
id: mainItem
|
||||||
textSize: Typography.b2.pixelSize
|
textSize: Typography.b3.pixelSize
|
||||||
textWeight: Typography.b2.weight
|
textWeight: Typography.b3.weight
|
||||||
color: DefaultStyle.main1_100
|
color: DefaultStyle.main1_100
|
||||||
textColor: DefaultStyle.main1_500_main
|
textColor: DefaultStyle.main1_500_main
|
||||||
leftPadding: 12 * DefaultStyle.dp
|
leftPadding: 12 * DefaultStyle.dp
|
||||||
|
|
|
||||||
|
|
@ -95,11 +95,11 @@ Rectangle {
|
||||||
model: mainItem.contentModel
|
model: mainItem.contentModel
|
||||||
delegate: ColumnLayout {
|
delegate: ColumnLayout {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.topMargin: 16 * DefaultStyle.dp
|
Layout.topMargin: (modelData.hideTopSeparator ? 0 : 16) * DefaultStyle.dp
|
||||||
Layout.bottomMargin: 16 * DefaultStyle.dp
|
Layout.bottomMargin: 16 * DefaultStyle.dp
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
height: 1 * DefaultStyle.dp
|
height: 1 * DefaultStyle.dp
|
||||||
color: DefaultStyle.main2_500main
|
color: modelData.hideTopSeparator ? 'transparent' : DefaultStyle.main2_500main
|
||||||
}
|
}
|
||||||
GridLayout {
|
GridLayout {
|
||||||
rows: 1
|
rows: 1
|
||||||
|
|
@ -133,9 +133,9 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.topMargin: 21 * DefaultStyle.dp
|
Layout.topMargin: (modelData.hideTopMargin ? 0 : (mainItem.useVerticalLayout ? 10 : 21)) * DefaultStyle.dp
|
||||||
anchors.bottomMargin: 21 * DefaultStyle.dp
|
Layout.bottomMargin: 21 * DefaultStyle.dp
|
||||||
anchors.leftMargin: (mainItem.useVerticalLayout ? 0 : 17) * DefaultStyle.dp
|
Layout.leftMargin: (mainItem.useVerticalLayout ? 0 : 17) * DefaultStyle.dp
|
||||||
Layout.preferredWidth: (modelData.customWidth > 0 ? modelData.customWidth : 545) * DefaultStyle.dp
|
Layout.preferredWidth: (modelData.customWidth > 0 ? modelData.customWidth : 545) * DefaultStyle.dp
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
Loader {
|
Loader {
|
||||||
|
|
|
||||||
|
|
@ -11,17 +11,23 @@ AbstractSettingsLayout {
|
||||||
width: parent?.width
|
width: parent?.width
|
||||||
contentModel: [
|
contentModel: [
|
||||||
{
|
{
|
||||||
title: qsTr("Configuration distante"),
|
title: qsTr("Système"),
|
||||||
subTitle: "",
|
subTitle: "",
|
||||||
contentComponent: remoteProvisioningComponent
|
contentComponent: systemComponent
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: qsTr("Codecs Audio"),
|
title: qsTr("Configuration distante"),
|
||||||
|
subTitle: "",
|
||||||
|
contentComponent: remoteProvisioningComponent,
|
||||||
|
hideTopSeparator: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: qsTr("Codecs audio"),
|
||||||
subTitle: "",
|
subTitle: "",
|
||||||
contentComponent: audioCodecsComponent,
|
contentComponent: audioCodecsComponent,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: qsTr("Codecs Vidéo"),
|
title: qsTr("Codecs vidéo"),
|
||||||
subTitle: "",
|
subTitle: "",
|
||||||
contentComponent: videoCodecsComponent
|
contentComponent: videoCodecsComponent
|
||||||
},
|
},
|
||||||
|
|
@ -32,13 +38,29 @@ AbstractSettingsLayout {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
// System
|
||||||
|
/////////
|
||||||
|
|
||||||
|
Component {
|
||||||
|
id: systemComponent
|
||||||
|
ColumnLayout {
|
||||||
|
spacing: 40 * DefaultStyle.dp
|
||||||
|
SwitchSetting {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
titleText: qsTr("Démarrer automatiquement Linphone")
|
||||||
|
propertyName: "autoStart"
|
||||||
|
propertyOwner: SettingsCpp
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Remote Provisioning
|
// Remote Provisioning
|
||||||
//////////////////////
|
//////////////////////
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: remoteProvisioningComponent
|
id: remoteProvisioningComponent
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
spacing: 20 * DefaultStyle.dp
|
spacing: 6 * DefaultStyle.dp
|
||||||
DecoratedTextField {
|
DecoratedTextField {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
id: configUri
|
id: configUri
|
||||||
|
|
@ -46,6 +68,7 @@ AbstractSettingsLayout {
|
||||||
toValidate: true
|
toValidate: true
|
||||||
}
|
}
|
||||||
SmallButton {
|
SmallButton {
|
||||||
|
Layout.topMargin: -20 * DefaultStyle.dp
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
text: qsTr("Télécharger et appliquer")
|
text: qsTr("Télécharger et appliquer")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
@ -59,7 +82,7 @@ AbstractSettingsLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Audio codecs
|
// Audio codecs
|
||||||
//////////////
|
//////////////
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
|
|
@ -81,7 +104,7 @@ AbstractSettingsLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Video codecs
|
// Video codecs
|
||||||
//////////////
|
//////////////
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
|
|
|
||||||
|
|
@ -12,12 +12,14 @@ AbstractSettingsLayout {
|
||||||
{
|
{
|
||||||
title: qsTr("Annuaires LDAP"),
|
title: qsTr("Annuaires LDAP"),
|
||||||
subTitle: qsTr("Ajouter vos annuaires LDAP pour pouvoir effectuer des recherches dans la magic search bar."),
|
subTitle: qsTr("Ajouter vos annuaires LDAP pour pouvoir effectuer des recherches dans la magic search bar."),
|
||||||
contentComponent: ldapParametersComponent
|
contentComponent: ldapParametersComponent,
|
||||||
|
hideTopMargin: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: qsTr("Carnet d'adresse CardDAV"),
|
title: qsTr("Carnet d'adresse CardDAV"),
|
||||||
subTitle: qsTr("Ajouter un carnet d’adresse CardDAV pour synchroniser vos contacts Linphone avec un carnet d’adresse tiers."),
|
subTitle: qsTr("Ajouter un carnet d’adresse CardDAV pour synchroniser vos contacts Linphone avec un carnet d’adresse tiers."),
|
||||||
contentComponent: cardDavParametersComponent
|
contentComponent: cardDavParametersComponent,
|
||||||
|
hideTopMargin: true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue