Make QZXing's tryHarder, charSet and foundedFormat accessible from QML

This commit is contained in:
Milian Wolff 2017-01-10 12:46:26 +01:00
parent 4c22c65b5e
commit eba661a424
1 changed files with 3 additions and 2 deletions

View File

@ -40,6 +40,7 @@ class
Q_ENUMS(DecoderFormat)
Q_PROPERTY(int processingTime READ getProcessTimeOfLastDecoding)
Q_PROPERTY(uint enabledDecoders READ getEnabledFormats WRITE setDecoder NOTIFY enabledFormatsChanged)
Q_PROPERTY(bool tryHarder READ getTryHarder WRITE setTryHarder)
public:
/*
@ -90,8 +91,8 @@ public:
void setTryHarder(bool tryHarder);
bool getTryHarder();
static QString decoderFormatToString(int fmt);
QString foundedFormat() const;
QString charSet() const;
Q_INVOKABLE QString foundedFormat() const;
Q_INVOKABLE QString charSet() const;
public slots:
/**