[vlc-commits] [Git][videolan/vlc][master] qml: use integer size in FadingEdgeListView

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Oct 31 08:00:34 UTC 2022



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
f7d76186 by Fatih Uzunoglu at 2022-10-31T07:36:06+00:00
qml: use integer size in FadingEdgeListView

- - - - -


1 changed file:

- modules/gui/qt/widgets/qml/FadingEdgeListView.qml


Changes:

=====================================
modules/gui/qt/widgets/qml/FadingEdgeListView.qml
=====================================
@@ -136,7 +136,11 @@ ListView {
         readonly property bool effectCompatible: !(((GraphicsInfo.shaderType === GraphicsInfo.GLSL)) &&
                                                   ((GraphicsInfo.shaderSourceType & GraphicsInfo.ShaderSourceString)))
 
-        anchors.fill: parent
+        anchors.top: parent.top
+        anchors.left: parent.left
+
+        implicitWidth: Math.ceil(parent.width)
+        implicitHeight: Math.ceil(parent.height)
 
         z: root.contentItem.z
 
@@ -144,8 +148,8 @@ ListView {
 
         sourceRect: Qt.rect(root.contentX,
                             root.contentY,
-                            root.width,
-                            root.height)
+                            width,
+                            height)
 
         // Make sure contentItem is not rendered twice:
         hideSource: visible



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f7d76186f2746a459f65dd0b4720791a7c8922a1

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f7d76186f2746a459f65dd0b4720791a7c8922a1
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list