[libcamera-devel,v2,11/11] qcam: ControlFrame: Implement Current Values for integer types
diff mbox series

Message ID 20220812124651.27496-12-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
Display the Current values for ControlTypeInteger32 and
ControlTypeInteger64.

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

Patch
diff mbox series

diff --git a/src/qcam/settings/control_frame.cpp b/src/qcam/settings/control_frame.cpp
index d9c294a2..45846ba2 100644
--- a/src/qcam/settings/control_frame.cpp
+++ b/src/qcam/settings/control_frame.cpp
@@ -144,6 +144,12 @@  void ControlFrame::setCurrentValue(const libcamera::ControlValue controlValue)
 	case ControlTypeFloat:
 		currentValue_->setText(QString::number(controlValue.get<float>()));
 		break;
+	case ControlTypeInteger32:
+		currentValue_->setText(QString::number(controlValue.get<int32_t>()));
+		break;
+	case ControlTypeInteger64:
+		currentValue_->setText(QString::number(controlValue.get<int64_t>()));
+		break;
 	default:
 		break;
 	}