[libcamera-devel,08/11] qcam: ControlsTab: Allow widget to resizeable
diff mbox series

Message ID 20220715191400.890976-9-utkarsh02t@gmail.com
State Superseded
Headers show
Series
  • Introduce control interaction to qcam
Related show

Commit Message

Utkarsh Tiwari July 15, 2022, 7:13 p.m. UTC
In QScrollArea by default the widgets are not resizeable.
This means when the user extends the QDialog the widgets don't resize
to fill the space.

Allow them to be resizeable.

Signed-off-by: Utkarsh Tiwari <utkarsh02t@gmail.com>
---
 src/qcam/settings/controls_tab.cpp | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/src/qcam/settings/controls_tab.cpp b/src/qcam/settings/controls_tab.cpp
index 496b5d3b..98962f3c 100644
--- a/src/qcam/settings/controls_tab.cpp
+++ b/src/qcam/settings/controls_tab.cpp
@@ -45,6 +45,7 @@  ControlsTab::ControlsTab(std::shared_ptr<libcamera::Camera> camera_,
 
 	/* Set widget and policies for the scrollarea */
 	setWidget(containerWidget);
+	setWidgetResizable(true);
 }
 
 /* -----------------------------------------------------------------------------