StillImageCamera: move GetFilePath to UI thread

This commit is contained in:
zhupengfei
2018-06-03 11:29:46 +08:00
parent 341c07156a
commit 7c48160beb
7 changed files with 26 additions and 16 deletions

View File

@@ -25,13 +25,14 @@ private:
QImage image;
};
class StillImageCameraFactory final : public QtCameraFactory {
class StillImageCameraFactory final : public QObject, public QtCameraFactory {
Q_OBJECT
public:
std::unique_ptr<CameraInterface> Create(const std::string& config,
const Service::CAM::Flip& flip) const override;
const Service::CAM::Flip& flip) override;
private:
static const std::string GetFilePath();
Q_INVOKABLE const std::string GetFilePath() const;
};
} // namespace Camera