qml: use binding to calculate minimum width of ButtonsLayout
commit046eab9c5784f3429d3c816af52f23c8400f1d2c
authorFatih Uzunoglu <fuzun54@outlook.com>
Thu, 18 Mar 2021 21:00:00 +0000 (19 00:00 +0300)
committerPierre Lamot <pierre@videolabs.io>
Mon, 29 Mar 2021 12:40:14 +0000 (29 14:40 +0200)
tree984f0605ab3680e3ceac91d4a3800af69fa0124b
parentd9bf7ec3a8c996e0c7c82cecc0ddbbe3a1f4ed93
qml: use binding to calculate minimum width of ButtonsLayout

This patch fixes the issue of wrongly positioned controls that happened in two or more conditions:
1) Interface scale factor is changed
2) ButtonsLayout model is changed (ToolbarEditor is used to change the player controlbar configuration)

Signed-off-by: Pierre Lamot <pierre@videolabs.io>
modules/gui/qt/player/qml/ButtonsLayout.qml