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

chatviewsettings: fix layout values

Horizontal view show components horizontally in a vertical layout.
So, the labels were inverted

Change-Id: Iaecfa923ef0a2eb1ec810ab0436dddd4f4ea73e5
GitLab: #571
parent df7b351f
No related branches found
No related tags found
No related merge requests found
...@@ -378,8 +378,8 @@ Item { ...@@ -378,8 +378,8 @@ Item {
property string displayHyperlinkPreviews: qsTr("Display hyperlink previews in the chatview") property string displayHyperlinkPreviews: qsTr("Display hyperlink previews in the chatview")
property string layout: qsTr("Layout") property string layout: qsTr("Layout")
property string language: qsTr("User interface language") property string language: qsTr("User interface language")
property string verticalOpt: qsTr("Vertical view") property string verticalViewOpt: qsTr("Vertical view")
property string horizontalOpt: qsTr("Horizontal view") property string horizontalViewOpt: qsTr("Horizontal view")
// File transfer settings // File transfer settings
property string fileTransfer: qsTr("File transfer") property string fileTransfer: qsTr("File transfer")
......
...@@ -89,8 +89,8 @@ ColumnLayout { ...@@ -89,8 +89,8 @@ ColumnLayout {
fontPointSize: JamiTheme.settingsFontSize fontPointSize: JamiTheme.settingsFontSize
comboModel: ListModel { comboModel: ListModel {
Component.onCompleted: { Component.onCompleted: {
append({ textDisplay: JamiStrings.verticalOpt }) append({ textDisplay: JamiStrings.horizontalViewOpt })
append({ textDisplay: JamiStrings.horizontalOpt }) append({ textDisplay: JamiStrings.verticalViewOpt })
} }
} }
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.horizontalOpt comboModel.get(modelIndex).textDisplay === JamiStrings.verticalViewOpt
) )
} }
} }
......
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