Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 77824c8

Browse files
committedApr 16, 2019
Disable methods to register QMLtypes if QZXing is build as lib + qml
1 parent d0a9ee7 commit 77824c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/QZXing.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ QZXing::QZXing(QZXing::DecoderFormat decodeHints, QObject *parent) : QObject(par
7979

8080
#ifdef QZXING_QML
8181

82+
#ifndef DISABLE_LIBRARY_FEATURES
83+
8284
#if QT_VERSION >= 0x040700
8385
void QZXing::registerQMLTypes()
8486
{
@@ -98,6 +100,8 @@ void QZXing::registerQMLImageProvider(QQmlEngine& engine)
98100
}
99101
#endif //QT_VERSION >= Qt 5.0
100102

103+
#endif // DISABLE_LIBRARY_FEATURES
104+
101105
#endif //QZXING_QML
102106

103107
void QZXing::setTryHarder(bool tryHarder)

0 commit comments

Comments
 (0)
Please sign in to comment.