Skip to content

Commit

Permalink
Disable methods to register QMLtypes if QZXing is build as lib + qml
Browse files Browse the repository at this point in the history
  • Loading branch information
Thaodan committed May 28, 2019
1 parent ee596f1 commit 961e24f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/QZXing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ QZXing::QZXing(QZXing::DecoderFormat decodeHints, QObject *parent) : QObject(par

#ifdef QZXING_QML

#ifndef DISABLE_LIBRARY_FEATURES

#if QT_VERSION >= 0x040700
void QZXing::registerQMLTypes()
{
Expand All @@ -98,6 +100,8 @@ void QZXing::registerQMLImageProvider(QQmlEngine& engine)
}
#endif //QT_VERSION >= Qt 5.0

#endif // DISABLE_LIBRARY_FEATURES

#endif //QZXING_QML

void QZXing::setTryHarder(bool tryHarder)
Expand Down

0 comments on commit 961e24f

Please sign in to comment.