Commit Graph

25 Commits

Author SHA1 Message Date
Nikolaos Ftylitakis d48a139d03 At Barcode Encode image provider support explicitSize option in cases where the Item that requests the image can not provide requested size. Such cae is at #191 where the image was requested through an HTML tag in a RichText instead being source to an Image. 2021-05-06 13:12:06 +03:00
Nikolaos Ftylitakis 71101ccf5d Replaced QtQuick.Dialogs with Qt.labs.platform 2021-01-26 11:48:11 +02:00
Nikos Ftylitakis c1f4379ec7 @BarcodeEncoder: translate the URL persentage encoded special character to the corresponding UTF8 code before encoding to QR Code. #134 2020-01-13 11:27:31 +02:00
Nikos Ftylitakis 4b7f8b6a71 complementary commit for 10ba99586e 2019-10-15 10:16:01 +03:00
Nikos Ftylitakis 742f3d9729 minor code cleanup, remove forgotten comment. 2019-10-03 17:13:56 +03:00
Nikos Ftylitakis 2bf62bcf3f update from master 2019-10-03 17:11:12 +03:00
Nikos Ftylitakis b55e749b5a update UI to be able to play around with background colors and transparency 2019-10-03 17:08:23 +03:00
Nikolaos Ftylitakis 6070e98f38
Add conditional builds in pro (#141)
* first refactoring on QZXing.pri to group sources based on type of barcode and operation

* Moved the newly created source code groups of functionalities to separate pri file (QZXing-components.pri).

* In QZXing.pri include QZXing-components.pri having previously added as configuration all the available modules to preserve the backward compatibility.

* Deactivate parts of code based on the configuration of the pro file. (Work in Progress).

* fix compilation error

* Fix include issue when only "enable_encoder_qr_code" config is used through QZXing-components.pri

Update example projects to use QZXing-components.pri
2019-10-03 15:56:14 +03:00
Nikos Ftylitakis c077e8e760 Created QZXingEncoderConfig struct to hold the configuration of the encode operation. It has been extracted to a struct since the parameters are increasing.
Created overloaded function for encodeData to use the QZXingEncoderConfig. The old implementation of encodeData now translates its arguments into a QZXingEncoderConfig and calls the overloaded function.

Updated regex in QZXingImageProvider to be aware of the new configuration of border.

Updated BarcodeEncoder example UI to allow the control of the border option.
2019-09-29 20:18:04 +03:00
Nikos Ftylitakis 98c2479ca3 fix typo at the configuration parameters of Encoder. Old value: "corretionLevel" -> new value "correctionLevel" 2019-09-29 01:43:03 +03:00
Alexander Stillich 3f3a89b2ba Introduced ZXING_NULLPTR and ZXING_NOEXCEPT to abstract differences between C+11 and non-C++11 compilers
Fixed warnings in QZXingFilter.cpp
Removed C++11 requirement from all .pro files
Set compiler warning flags via CONFIG += warn_on instead of using GCC specific switches
2018-11-16 13:05:58 +01:00
Alexander Stillich d2242ac24a Fixed XXX has no out-of-line virtual method definitions; its vtable will be emitted in every translation unit in Exception and derived classes
Enabled -Wall and -Wextra
2018-11-05 14:50:45 +01:00
favoritas37 9c361587a4 Updated QZXingImageProvider::requestImage implementation to:
- fix bug when '?' is included without correct definition of options
 - utilize requestedSize for the generated barcode

Updated README.md file to reflect changes.
2018-03-11 19:21:19 +02:00
favoritas37 bec02cb83e Added new implementation of QrCode encoding.
It is backward compatible with the version that was active till now, though, it also enables an advanced operation for configuring options during encoding.
2018-02-11 20:43:48 +02:00
Grecko 11f1269ad6 Declarative encoding API from QML
To display an encoded qrcode from QML, we now can do Image { source:
"image://QZXing/qrcode/<data>" }

This allows different encoded images to be displayed simultaneously

Closes #31
2017-10-14 18:31:54 +02:00
favoritas37 30dcf6acfc Fixed compilation of BarcodeEncoder example. Make use of qzxing_qml CONFIG tag. 2017-04-07 17:16:15 +03:00
favoritas37 88012f5aa2 Updated BarcodeEncoder project. Previous implementation caused compilation error when compiled with MSVC. Also this implementation is more compact 2017-01-23 19:45:47 +02:00
favoritas37 f8e1574b6c fixed the refresh of the generated image from Encode procedure (disabled image caching) 2016-07-02 01:06:55 +03:00
favoritas37 cc0cd49996 minor optimization in the BarcodeEncoder view. 2016-06-16 01:20:15 +03:00
favoritas37 916903ed83 Update BarcodeEncoder to make use of Image Provider in order to display the image of the generated barcode to the QML viewe. 2016-06-16 01:16:35 +03:00
favoritas37 b0e3661c44 minor enhancement to the BarcodeEncoder UI. 2016-06-14 02:41:37 +03:00
favoritas37 22e969b5c2 added c++11 config in BarcodeEncoder project 2016-02-20 15:19:23 +02:00
favoritas37 3d28afb79d updated example projects to the new file structure of the repository (renaming of the source folder) 2016-01-08 22:31:48 +02:00
favoritas37 630f560e89 bug fixing at qr code encoding. this tests fail 2015-10-31 19:14:59 +02:00
favoritas37 48d546aaea Added the example project BarcodeEncoder which will be used as the base for the barcode encoding functions (and testing) 2015-07-16 21:09:44 +03:00