mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-27 08:49:19 +00:00
fix(ui/modules/Common/Form/ComboBox): deal correctly with leftMargin and Qt5.8
This commit is contained in:
parent
3dd474111c
commit
6e440461c7
1 changed files with 5 additions and 1 deletions
|
|
@ -4,6 +4,8 @@ import QtQuick.Layouts 1.3
|
|||
|
||||
import Common 1.0
|
||||
import Common.Styles 1.0
|
||||
import Linphone 1.0
|
||||
import Utils 1.0
|
||||
|
||||
import 'ComboBox.js' as Logic
|
||||
|
||||
|
|
@ -40,7 +42,9 @@ ComboBox {
|
|||
RowLayout {
|
||||
anchors {
|
||||
fill: parent
|
||||
leftMargin: ComboBoxStyle.contentItem.leftMargin
|
||||
leftMargin: !Utils.startsWith(App.qtVersion, '5.8')
|
||||
? ComboBoxStyle.contentItem.leftMargin // >= 5.9
|
||||
: 0 // 5.8
|
||||
}
|
||||
|
||||
spacing: ComboBoxStyle.contentItem.spacing
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue