Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Samo Golež
VLC
Commits
46f9f82d
Commit
46f9f82d
authored
May 10, 2021
by
Prince Gupta
💬
Committed by
Jean-Baptiste Kempf
May 15, 2021
Browse files
qml/gridview: implement displayMarginEnd property
parent
0e0f99db
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/gui/qt/widgets/qml/ExpandGridView.qml
View file @
46f9f82d
...
...
@@ -38,6 +38,9 @@ NavigableFocusScope {
property
int
horizontalSpacing
:
VLCStyle
.
column_margin_width
property
int
verticalSpacing
:
VLCStyle
.
column_margin_width
property
int
displayMarginEnd
:
0
onDisplayMarginEndChanged
:
flickable
.
layout
(
false
)
readonly
property
int
_effectiveCellWidth
:
cellWidth
+
horizontalSpacing
readonly
property
int
_effectiveCellHeight
:
cellHeight
+
verticalSpacing
...
...
@@ -204,7 +207,7 @@ NavigableFocusScope {
var
myContentY
=
flickable
.
contentY
-
root
.
headerHeight
-
topMargin
var
contentYWithoutExpand
=
myContentY
var
heightWithoutExpand
=
flickable
.
height
var
heightWithoutExpand
=
flickable
.
height
+
root
.
displayMarginEnd
if
(
root
.
expandIndex
!==
-
1
)
{
if
(
myContentY
>=
expandItem
.
y
&&
myContentY
<
expandItem
.
y
+
_expandItemVerticalSpace
)
contentYWithoutExpand
=
expandItem
.
y
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment