summaryrefslogtreecommitdiffstats
path: root/src/render/framegraph/qrendercapture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/framegraph/qrendercapture.h')
-rw-r--r--src/render/framegraph/qrendercapture.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/render/framegraph/qrendercapture.h b/src/render/framegraph/qrendercapture.h
index f3be273f3..5b768b593 100644
--- a/src/render/framegraph/qrendercapture.h
+++ b/src/render/framegraph/qrendercapture.h
@@ -52,18 +52,23 @@ class QT3DRENDERSHARED_EXPORT QRenderCaptureReply : public QObject
Q_OBJECT
Q_PROPERTY(QImage image READ image CONSTANT)
Q_PROPERTY(int captureId READ captureId CONSTANT)
- Q_PROPERTY(bool complete READ isComplete NOTIFY completeChanged)
+ Q_PROPERTY(bool complete READ isComplete NOTIFY completed)
public:
QImage image() const;
- int captureId() const;
+ Q_DECL_DEPRECATED int captureId() const;
bool isComplete() const;
- Q_INVOKABLE void saveToFile(const QString &fileName) const;
+ Q_INVOKABLE bool saveImage(const QString &fileName) const;
+#if QT_DEPRECATED_SINCE(5, 9)
+ // ### Qt 6: remove this
+ Q_DECL_DEPRECATED_X("Use saveImage instead") Q_INVOKABLE void saveToFile(const QString &fileName) const;
+#endif
Q_SIGNALS:
- void completeChanged(bool isComplete);
+ Q_DECL_DEPRECATED_X("Use completed instead") void completeChanged(bool isComplete);
+ void completed();
private:
Q_DECLARE_PRIVATE(QRenderCaptureReply)
@@ -79,7 +84,9 @@ class QT3DRENDERSHARED_EXPORT QRenderCapture : public QFrameGraphNode
public:
explicit QRenderCapture(Qt3DCore::QNode *parent = nullptr);
- Q_INVOKABLE Qt3DRender::QRenderCaptureReply *requestCapture(int captureId);
+ Q_INVOKABLE Q_DECL_DEPRECATED_X("Use the overload with no parameter")
+ Qt3DRender::QRenderCaptureReply *requestCapture(int captureId);
+ Q_REVISION(9) Q_INVOKABLE Qt3DRender::QRenderCaptureReply *requestCapture();
protected:
void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change) Q_DECL_OVERRIDE;