Add getters for QGraphicsFrameCapture
Add getters for path and prefix Change-Id: Ifb243a0a15b8907e07bb821b7057bfbe0d350647 Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>bb10
parent
19673b6cf9
commit
70869c1459
|
|
@ -54,12 +54,26 @@ void QGraphicsFrameCapture::endCaptureFrame()
|
|||
d->endCaptureFrame();
|
||||
}
|
||||
|
||||
QString QGraphicsFrameCapture::capturePath() const
|
||||
{
|
||||
if (!d.isNull())
|
||||
return d->capturePath();
|
||||
return QString();
|
||||
}
|
||||
|
||||
void QGraphicsFrameCapture::setCapturePath(const QString &path)
|
||||
{
|
||||
if (!d.isNull())
|
||||
d->setCapturePath(path);
|
||||
}
|
||||
|
||||
QString QGraphicsFrameCapture::capturePrefix() const
|
||||
{
|
||||
if (!d.isNull())
|
||||
return d->capturePrefix();
|
||||
return QString();
|
||||
}
|
||||
|
||||
void QGraphicsFrameCapture::setCapturePrefix(const QString &prefix)
|
||||
{
|
||||
if (!d.isNull())
|
||||
|
|
|
|||
|
|
@ -32,8 +32,13 @@ public:
|
|||
void setRhi(QRhi *rhi);
|
||||
void startCaptureFrame();
|
||||
void endCaptureFrame();
|
||||
|
||||
QString capturePath() const;
|
||||
void setCapturePath(const QString &path);
|
||||
|
||||
QString capturePrefix() const;
|
||||
void setCapturePrefix(const QString &prefix);
|
||||
|
||||
bool isLoaded() const;
|
||||
bool isCapturing() const;
|
||||
void openCapture() const;
|
||||
|
|
|
|||
|
|
@ -36,8 +36,13 @@ public:
|
|||
virtual void setRhi(QRhi *rhi) = 0;
|
||||
virtual void startCaptureFrame() = 0;
|
||||
virtual void endCaptureFrame() = 0;
|
||||
|
||||
QString capturePath() const { return m_capturePath; };
|
||||
virtual void setCapturePath(const QString &path) { m_capturePath = path; }
|
||||
|
||||
QString capturePrefix() const { return m_capturePrefix; }
|
||||
virtual void setCapturePrefix(const QString &prefix) { m_capturePrefix = prefix; }
|
||||
|
||||
virtual bool initialized() const = 0;
|
||||
virtual bool isCapturing() const = 0;
|
||||
virtual void openCapture() = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue