revert propert decoder of QZXingFilter that was mistakenly renamed. Allocate an instance of QZXing at the creation of QZXingFilter

This commit is contained in:
favoritas37 2017-01-17 16:13:42 +02:00
parent 54a7fc9d72
commit eb6bdb41e9
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

@ -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: