summaryrefslogtreecommitdiff
path: root/src/multimedia/camera/qcameraexposure.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-07-01 12:05:57 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-07-04 11:18:45 +0200
commita0cdd6f79222d06a0fc41caa1fbb35acb20d4961 (patch)
tree0fe7d559df8fb23c093dc29130bf1a763798b910 /src/multimedia/camera/qcameraexposure.h
parent421fa617369646eb99750c52a3b38fc3b3015ec6 (diff)
downloadqtmultimedia-a0cdd6f79222d06a0fc41caa1fbb35acb20d4961.tar.gz
Fix API of QCameraExposure, QCameraFocus, QCameraImageProcessing for Qt for Python
The classes inherit QObject, but make the destructor private, which makes it impossible to add Qt for Python bindings. Make destructors protected to fix this. This is arguably a BC break for compilers which have the accessibility mangled in the symbol, but, since the destructor was private, there cannot be any code using it. Task-number: QTBUG-74422 Task-number: PYSIDE-1041 Change-Id: Id23d73aea8aedf15caafa20c048a80efd3e880bd Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/multimedia/camera/qcameraexposure.h')
-rw-r--r--src/multimedia/camera/qcameraexposure.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/multimedia/camera/qcameraexposure.h b/src/multimedia/camera/qcameraexposure.h
index f8eb68fbf..a1dc96701 100644
--- a/src/multimedia/camera/qcameraexposure.h
+++ b/src/multimedia/camera/qcameraexposure.h
@@ -165,11 +165,13 @@ Q_SIGNALS:
void isoSensitivityChanged(int);
void exposureCompensationChanged(qreal);
+protected:
+ virtual ~QCameraExposure();
+
private:
friend class QCamera;
friend class QCameraPrivate;
explicit QCameraExposure(QCamera *parent = nullptr);
- virtual ~QCameraExposure();
Q_DISABLE_COPY(QCameraExposure)
Q_DECLARE_PRIVATE(QCameraExposure)