[vlc-commits] [Git][videolan/vlc][master] 2 commits: qml: avoid unnecessary text property changed

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Fri Aug 26 08:41:53 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
206994ab by Prince Gupta at 2022-08-26T08:21:37+00:00
qml: avoid unnecessary text property changed

improve batch retention when mouse is moved in the UI
also eliminate repainting

- - - - -
67d3c1ea by Prince Gupta at 2022-08-26T08:21:37+00:00
qml: fix margin assignment

- - - - -


2 changed files:

- modules/gui/qt/widgets/qml/GridItem.qml
- modules/gui/qt/widgets/qml/ScrollingText.qml


Changes:

=====================================
modules/gui/qt/widgets/qml/GridItem.qml
=====================================
@@ -265,7 +265,7 @@ T.Control {
                     id: selectedShadow
 
                     anchors.fill: parent
-                    anchors.margins: VLCStyle.dp()
+                    anchors.margins: VLCStyle.dp(1)
                     z: -1
 
                     visible: opacity > 0


=====================================
modules/gui/qt/widgets/qml/ScrollingText.qml
=====================================
@@ -40,7 +40,7 @@ Item {
         label.width = Qt.binding(function () { return Math.min(label.implicitWidth, control.width) })
 
         label.elide = Qt.binding(function () {
-            return (control.forceScroll || hoverArea.containsMouse) ? Text.ElideNone : Text.ElideRight
+            return control.scrolling ? Text.ElideNone : Text.ElideRight
         })
     }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/6b8ef562c447b0e9e4b24d55cfb8dc5952d5a84d...67d3c1ea227a95c2b8da75f1533b83e09f3f13d0

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/6b8ef562c447b0e9e4b24d55cfb8dc5952d5a84d...67d3c1ea227a95c2b8da75f1533b83e09f3f13d0
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