[vlc-devel] [PATCH 1/8] qml: make GridItem.highlighted property public
Prince Gupta
guptaprince8832 at gmail.com
Wed Apr 21 10:11:57 UTC 2021
this can be helpfull to move different items out of GridItem
---
modules/gui/qt/widgets/qml/GridItem.qml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/gui/qt/widgets/qml/GridItem.qml b/modules/gui/qt/widgets/qml/GridItem.qml
index e9e360ff6c..78802553de 100644
--- a/modules/gui/qt/widgets/qml/GridItem.qml
+++ b/modules/gui/qt/widgets/qml/GridItem.qml
@@ -63,14 +63,14 @@ FocusScope {
implicitWidth: mouseArea.implicitWidth
implicitHeight: mouseArea.implicitHeight
- readonly property bool _highlighted: mouseArea.containsMouse || root.activeFocus
+ readonly property bool highlighted: mouseArea.containsMouse || root.activeFocus
readonly property int selectedBorderWidth: VLCStyle.gridItemSelectedBorder
property int _newIndicatorMedian: VLCStyle.margin_xsmall
property int _modifiersOnLastPress: Qt.NoModifier
- state: _highlighted ? "selected" : "unselected"
+ state: highlighted ? "selected" : "unselected"
states: [
State {
name: "unselected"
@@ -248,7 +248,7 @@ FocusScope {
width: root.width + ( root.selectedBorderWidth * 2 )
height: root.height + ( root.selectedBorderWidth * 2 )
color: VLCStyle.colors.bgHover
- visible: root.selected || root._highlighted
+ visible: root.selected || root.highlighted
}
Loader {
@@ -273,7 +273,7 @@ FocusScope {
width: pictureWidth
height: pictureHeight
- playCoverVisible: root._highlighted
+ playCoverVisible: root.highlighted
onPlayIconClicked: root.playClicked()
clip: true
radius: VLCStyle.gridCover_radius
@@ -299,7 +299,7 @@ FocusScope {
id: titleTextRect
label: titleLabel
- scroll: _highlighted
+ scroll: highlighted
height: titleLabel.height
width: titleLabel.width
visible: root.title !== ""
--
2.27.0
More information about the vlc-devel
mailing list