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

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

Commit Message

Utkarsh Tiwari Aug. 12, 2022, 12:46 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);
 }
 
 /* -----------------------------------------------------------------------------