qv4l2: fix layout issues related to stacked widgets
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 23 Jul 2014 13:47:50 +0000 (15:47 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Wed, 23 Jul 2014 13:47:50 +0000 (15:47 +0200)
commit4d94fb69ec108146f711e03b8c34e665a3434e44
tree12b8117332d49ffc4e98c6d3f57c74113cf3f7fb
parent340a7da4a051573d4b67116b465f89d01a7806e7
qv4l2: fix layout issues related to stacked widgets

I've been digging into why on my laptop the stacked frames in the Input section
appear shifted to the right.

The reason is that the initial loop in fixWidth() sets the minimumwidth
without looking at what the widget is. After some debugging I found out that it
was setting the minimumwidth for the wFrameSR widget.

So I added checks that it only changes it for comboboxes, spinboxes and sliders.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/qv4l2/general-tab.cpp