[vlc-commits] qml: use Rectangle instead of Item
Abel Tesfaye
git at videolan.org
Tue Jul 30 17:57:01 CEST 2019
vlc | branch: master | Abel Tesfaye <Abeltesfaye45 at gmail.com> | Fri Jun 21 21:16:07 2019 +0300| [60b0f06697df4e798f6f702717fb57321a0894ae] | committer: Jean-Baptiste Kempf
qml: use Rectangle instead of Item
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=60b0f06697df4e798f6f702717fb57321a0894ae
---
modules/gui/qt/qml/utils/GridItem.qml | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/modules/gui/qt/qml/utils/GridItem.qml b/modules/gui/qt/qml/utils/GridItem.qml
index a57791d5b2..fbfebe50d3 100644
--- a/modules/gui/qt/qml/utils/GridItem.qml
+++ b/modules/gui/qt/qml/utils/GridItem.qml
@@ -27,7 +27,7 @@ import org.videolan.medialib 0.1
import "qrc:///utils/" as Utils
import "qrc:///style/"
-Item {
+Rectangle {
id: root
property url image
@@ -44,8 +44,12 @@ Item {
signal itemClicked(int keys, int modifier)
signal itemDoubleClicked(int keys, int modifier)
- Item {
+ Rectangle {
+ id: gridItem
x: shiftX
+ width: childrenRect.width
+ height: childrenRect.height
+ color: "transparent"
MouseArea {
id: mouseArea
@@ -57,7 +61,6 @@ Item {
width: childrenRect.width
height: childrenRect.height
- Column {
Item {
id: picture
@@ -211,4 +214,4 @@ Item {
}
}
}
-}
+
More information about the vlc-commits
mailing list