Index: sources/gui/qml/components/BaseComboBox.qml =================================================================== diff -u -rde099919f262c3429cb0592ef71deb6a16e92892 -rb12853c86ef9e517667516dc3e47bca07349cedf --- sources/gui/qml/components/BaseComboBox.qml (.../BaseComboBox.qml) (revision de099919f262c3429cb0592ef71deb6a16e92892) +++ sources/gui/qml/components/BaseComboBox.qml (.../BaseComboBox.qml) (revision b12853c86ef9e517667516dc3e47bca07349cedf) @@ -29,12 +29,14 @@ property int delegateWidth : dropDownWidth property int delegateHeight : height property bool canOff : false + property bool centerHorizontally: false + width : 300 displayText : _root.isActive ? currentText : Variables.emptyEntry currentIndex : 0 font.pixelSize : Fonts.fontPixelTextRectTitle - leftPadding : 30 + leftPadding : centerHorizontally || ! _root.isActive ? 30 : 10 signal clear() @@ -45,8 +47,10 @@ color : Colors.offWhite font.pixelSize : _root.isActive ? Fonts.fontPixelTextRectTitle : Fonts.fontPixelValueControl verticalAlignment : Text.AlignVCenter - horizontalAlignment : Text.AlignHCenter - rightPadding : _icon.width + horizontalAlignment : centerHorizontally || ! _root.isActive ? Text.AlignHCenter : undefined + rightPadding : _root.isActive ? 15 : 0 + clip : true + elide : Text.ElideRight } background: Rectangle { id: _background @@ -64,7 +68,9 @@ color : Colors.offWhite font : _root.font verticalAlignment : Text.AlignVCenter - horizontalAlignment : Text.AlignHCenter + horizontalAlignment : centerHorizontally ? Text.AlignHCenter : undefined + leftPadding : 10 + elide : Text.ElideRight } background: Rectangle {