|
@@ -19,6 +19,7 @@ ComboBox
|
|
|
property var defaultTextOnEmptyIndex: "" // Text displayed in the combobox when the model has items but no item is selected
|
|
|
property alias textFormat: contentLabel.textFormat
|
|
|
property alias backgroundColor: background.color
|
|
|
+ property bool forceHighlight: false
|
|
|
|
|
|
enabled: delegateModel.count > 0
|
|
|
|
|
@@ -46,7 +47,7 @@ ComboBox
|
|
|
State
|
|
|
{
|
|
|
name: "highlighted"
|
|
|
- when: ((base != undefined && base.hovered) || control.hovered) && !control.activeFocus
|
|
|
+ when: (control.hovered && !control.activeFocus) || forceHighlight
|
|
|
PropertyChanges
|
|
|
{
|
|
|
target: background
|