mirror of https://github.com/status-im/qzxing.git
revert propert decoder of QZXingFilter that was mistakenly renamed. Allocate an instance of QZXing at the creation of QZXingFilter
This commit is contained in:
parent
54a7fc9d72
commit
eb6bdb41e9
|
@ -28,6 +28,7 @@ namespace {
|
||||||
QZXingFilter::QZXingFilter(QObject *parent)
|
QZXingFilter::QZXingFilter(QObject *parent)
|
||||||
: QAbstractVideoFilter(parent)
|
: QAbstractVideoFilter(parent)
|
||||||
, decoding(false)
|
, decoding(false)
|
||||||
|
, decoder_p(new QZXing())
|
||||||
{
|
{
|
||||||
/// Conecting signals to handlers that will send signals to QML
|
/// Conecting signals to handlers that will send signals to QML
|
||||||
connect(decoder_p, &QZXing::decodingStarted,
|
connect(decoder_p, &QZXing::decodingStarted,
|
||||||
|
|
|
@ -63,7 +63,7 @@ class QZXingFilter : public QAbstractVideoFilter
|
||||||
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_PROPERTY(bool decoding READ isDecoding NOTIFY isDecodingChanged)
|
Q_PROPERTY(bool decoding READ isDecoding NOTIFY isDecodingChanged)
|
||||||
Q_PROPERTY(QZXing* decoder_p READ getDecoder)
|
Q_PROPERTY(QZXing* decoder READ getDecoder)
|
||||||
Q_PROPERTY(QRectF captureRect MEMBER captureRect NOTIFY captureRectChanged)
|
Q_PROPERTY(QRectF captureRect MEMBER captureRect NOTIFY captureRectChanged)
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
Loading…
Reference in New Issue