Highlight QML Type
Highlight for a list or grid item. More...
| Import Statement: | import org.kde.plasma.extras |
Properties
- active : bool
- hovered : bool
- marginHints : int
- pressed : bool
Detailed Description
Highlight provides the highlight used to indicate the active item in a model view. It is typically used in conjunction with the ListView::highlight or the GridView::highlight properties.
Provides built-in animation of Behavior on opacity Easing.OutQuad for a duration of 50ms (defined in Kirigami.Units.veryShortDuration).
import QtQuick import org.kde.plasma.extras as PlasmaExtras ListView { highlightFollowsCurrentItem: true highlight: PlasmaExtras.Highlight { } highlightMoveDuration: 0 highlightResizeDuration: 0 currentIndex: -1 }
Property Documentation
active : bool
This property holds whether the item is active. True by default. Set it to false to visually mark an item that's in the "current item" or "selected" state but is not currently being hovered.
hovered : bool
This property holds whether the control is hovered.
This is set automatically when used in a ListView and GridView.
marginHints : int
This property holds the margin hints used by the background.
pressed : bool
This property holds whether the highlight has a pressed appearance.