
Properties | |
color | activeBackgroundColor |
color | activeTextColor |
Item | background |
color | backgroundColor |
bool | checked |
alias | containsMouse |
Item | contentItem |
alias | pressed |
bool | sectionDelegate |
bool | separatorVisible |
alias | supportsMouseEvents |
color | textColor |
Signals | |
void | clicked () |
void | pressAndHold () |
Detailed Description
An item delegate for the primitive ListView component.
It's intended to make all listviews look coherent.
Definition at line 28 of file controls/AbstractListItem.qml.
Property Documentation
color org::kde::kirigami::AbstractListItem::activeBackgroundColor |
activeBackgroundColor: color Color for the background of the item when pressed or selected It is advised to leave the default value (Theme.highlightColor)
Definition at line 136 of file controls/templates/AbstractListItem.qml.
color org::kde::kirigami::AbstractListItem::activeTextColor |
activeTextColor: color Color for the text in the item when pressed or selected It is advised to leave the default value (Theme.highlightedTextColor)
Note: if custom text elements are inserted in an AbstractListItem, their color proprty will ahve to be manually binded with this property
Definition at line 130 of file controls/templates/AbstractListItem.qml.
Item org::kde::kirigami::AbstractListItem::background |
background: Item This property holds the background item.
Note: If the background item has no explicit size specified, it automatically follows the control's size. In most cases, there is no need to specify width or height for a background item.
Definition at line 106 of file controls/templates/AbstractListItem.qml.
color org::kde::kirigami::AbstractListItem::backgroundColor |
backgroundColor: color Color for the background of the item It is advised to leave the default value (Theme.viewBackgroundColor)
Definition at line 121 of file controls/templates/AbstractListItem.qml.
bool org::kde::kirigami::AbstractListItem::checked |
checked: bool If true makes the list item look as checked or pressed.
It has to be set from the code, it won't change by itself.
Definition at line 72 of file controls/templates/AbstractListItem.qml.
alias org::kde::kirigami::AbstractListItem::containsMouse |
containsMouse: bool True when the user hover the mouse over the list item NOTE: on mobile touch devices this will be true only when pressed is also true
Definition at line 84 of file controls/templates/AbstractListItem.qml.
Item org::kde::kirigami::AbstractListItem::contentItem |
contentItem: Item This property holds the visual content item.
Note: The content item is automatically resized inside the padding of the control.
- Remarks
- This is the default property
Definition at line 42 of file controls/templates/AbstractListItem.qml.
alias org::kde::kirigami::AbstractListItem::pressed |
pressed: bool True when the user is pressing the mouse over the list item and supportsMouseEvents is set to true
Definition at line 78 of file controls/templates/AbstractListItem.qml.
bool org::kde::kirigami::AbstractListItem::sectionDelegate |
sectionDelegate: bool If true the item will be a delegate for a section, so will look like a "title" for the items under it.
Definition at line 90 of file controls/templates/AbstractListItem.qml.
bool org::kde::kirigami::AbstractListItem::separatorVisible |
separatorVisible: bool True if the separator between items is visible default: true
Definition at line 96 of file controls/templates/AbstractListItem.qml.
alias org::kde::kirigami::AbstractListItem::supportsMouseEvents |
supportsMouseEvents: bool Holds if the item emits signals related to mouse interaction.
TODO: remove The default value is false.
Definition at line 49 of file controls/templates/AbstractListItem.qml.
color org::kde::kirigami::AbstractListItem::textColor |
textColor: color Color for the text in the item It is advised to leave the default value (Theme.viewTextColor)
Note: if custom text elements are inserted in an AbstractListItem, their color proprty will ahve to be manually binded with this property
Definition at line 115 of file controls/templates/AbstractListItem.qml.
Member Function Documentation
|
signal |
clicked: signal This signal is emitted when there is a click.
This is disabled by default, set enabled to true to use it.
- See Also
- enabled
|
signal |
pressAndHold: signal The user pressed the item with the mouse and didn't release it for a certain amount of time.
This is disabled by default, set enabled to true to use it.
- See Also
- enabled
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2017 The KDE developers.
Generated on Fri Feb 17 2017 11:09:23 by doxygen 1.8.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.