forked from qt-creator/qt-creator
QmlDesigner: Hide ComboBox ScrollBar if not needed
Change-Id: I1e8d9917b7b966b6c4e68459185c54dda7d21015 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
committed by
Henning Gründl
parent
da192fb1e8
commit
f79a93dc2b
@@ -203,13 +203,15 @@ T.ComboBox {
|
||||
| T.Popup.CloseOnReleaseOutsideParent
|
||||
|
||||
contentItem: ListView {
|
||||
id: listView
|
||||
clip: true
|
||||
implicitHeight: contentHeight
|
||||
implicitHeight: listView.contentHeight
|
||||
model: myComboBox.popup.visible ? myComboBox.delegateModel : null
|
||||
currentIndex: myComboBox.highlightedIndex
|
||||
boundsBehavior: Flickable.StopAtBounds
|
||||
ScrollBar.vertical: ScrollBar {
|
||||
id: comboBoxPopupScrollBar
|
||||
visible: listView.height < listView.contentHeight
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user