1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-03 01:31:53 +02:00

qml/ControlLayout: Update the 'defaultSize' binding

This commit is contained in:
Benjamin Arnaud 2022-04-07 16:20:30 +02:00 committed by Hugo Beauzée-Luyssen
parent 2d886b18ff
commit 02b7d2491e

View File

@ -167,7 +167,8 @@ FocusScope {
// so it can be set here unlike leftItem and rightItem:
item.Navigation.parentItem = controlLayout
if (item instanceof Widgets.IconToolButton)
// FIXME: Do we really need to enforce a defaultSize ?
if (item.size !== undefined)
item.size = Qt.binding(function() { return defaultSize; })
// force colors: