Skip to content
Snippets Groups Projects
Commit 12277751 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

settings: update strings for chatview's position

Change-Id: I052711fbb30e36217b65caea2c00f0956b41b0b9
GitLab: #571
parent 5b2d6139
No related branches found
No related tags found
No related merge requests found
...@@ -376,10 +376,10 @@ Item { ...@@ -376,10 +376,10 @@ Item {
property string chatview: qsTr("Chatview") property string chatview: qsTr("Chatview")
property string enableTypingIndicator: qsTr("Enable typing indicators") property string enableTypingIndicator: qsTr("Enable typing indicators")
property string displayHyperlinkPreviews: qsTr("Display hyperlink previews in the chatview") property string displayHyperlinkPreviews: qsTr("Display hyperlink previews in the chatview")
property string chatviewPositionInCall: qsTr("Chatview's position in calls") property string layout: qsTr("Layout")
property string language: qsTr("User interface language") property string language: qsTr("User interface language")
property string bottomOpt: qsTr("Bottom") property string verticalOpt: qsTr("Vertical view")
property string rightOpt: qsTr("Right") property string horizontalOpt: qsTr("Horizontal view")
// File transfer settings // File transfer settings
property string fileTransfer: qsTr("File transfer") property string fileTransfer: qsTr("File transfer")
......
...@@ -85,12 +85,12 @@ ColumnLayout { ...@@ -85,12 +85,12 @@ ColumnLayout {
Layout.preferredHeight: JamiTheme.preferredFieldHeight Layout.preferredHeight: JamiTheme.preferredFieldHeight
Layout.leftMargin: JamiTheme.preferredMarginSize Layout.leftMargin: JamiTheme.preferredMarginSize
labelText: JamiStrings.chatviewPositionInCall labelText: JamiStrings.layout
fontPointSize: JamiTheme.settingsFontSize fontPointSize: JamiTheme.settingsFontSize
comboModel: ListModel { comboModel: ListModel {
Component.onCompleted: { Component.onCompleted: {
append({ textDisplay: JamiStrings.bottomOpt }) append({ textDisplay: JamiStrings.verticalOpt })
append({ textDisplay: JamiStrings.rightOpt }) append({ textDisplay: JamiStrings.horizontalOpt })
} }
} }
widthOfComboBox: itemWidth widthOfComboBox: itemWidth
...@@ -101,7 +101,7 @@ ColumnLayout { ...@@ -101,7 +101,7 @@ ColumnLayout {
onActivated: { onActivated: {
UtilsAdapter.setAppValue( UtilsAdapter.setAppValue(
Settings.Key.ShowChatviewHorizontally, Settings.Key.ShowChatviewHorizontally,
comboModel.get(modelIndex).textDisplay === JamiStrings.rightOpt comboModel.get(modelIndex).textDisplay === JamiStrings.horizontalOpt
) )
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment