org::kde::plasma::extras::Highlight

Search for usage in LXR

org::kde::plasma::extras::Highlight Class Reference
Inheritance diagram for org::kde::plasma::extras::Highlight:

Properties

bool hovered
 
alias marginHints
 
bool pressed
 

Additional Inherited Members

- Public Member Functions inherited from QtQuick.Item
 childAt (x, real y)
 
bool contains (point)
 
 forceActiveFocus ()
 
 forceActiveFocus (reason)
 
bool grabToImage (callback, targetSize)
 
object mapFromGlobal (x, real y)
 
object mapFromItem (item, point p)
 
object mapFromItem (item, real x, real y)
 
object mapFromItem (item, real x, real y, real width, real height)
 
object mapFromItem (item, rect r)
 
object mapToGlobal (x, real y)
 
object mapToItem (item, point p)
 
object mapToItem (item, real x, real y)
 
object mapToItem (item, real x, real y, real width, real height)
 
object mapToItem (item, rect r)
 
 nextItemInFocusChain (forward)
 

Detailed Description

Highlight for a list or grid item.

Since
2.0

Highlight provides the highlight used to indicate the active item in a model view. It is typically used in conjunction with the

See also
QtQuick.ListView::highlight or the
QtQuick.GridView::highlight properties.

Provides built-in animation of Behavior on opacity Easing.OutQuad for a duration of 50ms (defined in PlasmaCore.Units.veryShortDuration).

import QtQuick 2.15
import org.kde.plasma.extras 2.0 as PlasmaExtras
ListView {
highlightFollowsCurrentItem: true
highlight: PlasmaExtras.Highlight { }
highlightMoveDuration: 0
highlightResizeDuration: 0
currentIndex: -1
}

Definition at line 38 of file plasmaextracomponents/qml/Highlight.qml.

Property Documentation

◆ hovered

bool org::kde::plasma::extras::Highlight::hovered
read

This property holds whether the control is hovered.

This is set automatically when used in a ListView and GridView.

Definition at line 45 of file plasmaextracomponents/qml/Highlight.qml.

◆ marginHints

int org::kde::plasma::extras::Highlight::marginHints
read

This property holds the margin hints used by the background.

Definition at line 55 of file plasmaextracomponents/qml/Highlight.qml.

◆ pressed

bool org::kde::plasma::extras::Highlight::pressed
read

This property holds whether the highlight has a pressed appearance.

Definition at line 49 of file plasmaextracomponents/qml/Highlight.qml.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Sep 27 2023 04:07:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.