[vlc-commits] [Git][videolan/vlc][master] qml: remove the built-in padding from `TableViewDelegateExt`'s content item
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Jun 14 12:50:15 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
0c69eba8 by Fatih Uzunoglu at 2025-06-14T12:24:59+00:00
qml: remove the built-in padding from `TableViewDelegateExt`'s content item
This causes alignment issues with the header. It seems that they were added
in dec5d4b6, as part of avoiding directly referencing content item, but it
is not clear to me why at the moment and I do not remember why it was added
back then. It is likely a remnant from the idea of having a default padding
that act as the base padding and the root control's padding acting as extra
padding. There is still not a good solution for this in QML, i.e. adjusting
property when an item is reused while keeping the default value in account.
However, we have nevertheless moved away from that approach for a while, as
it is better to have full control of something under the jurisdiction of an
item where it is reused. If necessary, the default value can be repeated in
where it is reused.
That being said, I don't remember having this issue before, so it is likely
some change in the header caused this alignment issue. Perhaps the header
also contained this same amount of base padding, and it was removed there
but kept here.
- - - - -
1 changed file:
- modules/gui/qt/widgets/qml/TableViewDelegateExt.qml
Changes:
=====================================
modules/gui/qt/widgets/qml/TableViewDelegateExt.qml
=====================================
@@ -214,9 +214,6 @@ T.Control {
contentItem: Row {
id: contentItemRow
- leftPadding: VLCStyle.margin_xxxsmall
- rightPadding: VLCStyle.margin_xxxsmall
-
spacing: VLCStyle.column_spacing
Repeater {
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0c69eba89f8ba3f3baff8dcc4d61665c8b535fe0
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0c69eba89f8ba3f3baff8dcc4d61665c8b535fe0
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