summaryrefslogtreecommitdiff
path: root/cui/source/inc/QrCodeGenDialog.hxx
diff options
context:
space:
mode:
authorShubham Goyal <22shubh22@gmail.com>2019-08-04 23:23:43 +0530
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-08-08 09:10:34 +0200
commita0ef5c62ce8b5cac634aaf785f67a514ec334aa5 (patch)
treeb5766bc39a0ff30da06ca657fff85bb563c01d96 /cui/source/inc/QrCodeGenDialog.hxx
parent43f9c6d7c321b104a0387c844d61d45752ba3a4a (diff)
FIX: Error Correction in QR Code
Previously only Low Error Correction value was used to build the QR Code. This patch aims to fix this and make use of Error Correction what user selects. Is fix to the commit 2de42b53b7c23223c38e64a75eae248d8a0cd4ec Patch also involves some beautification. Change-Id: Ib809569fdd7c1c7c6305c27552419c3e5e8d51b9 Reviewed-on: https://gerrit.libreoffice.org/76958 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'cui/source/inc/QrCodeGenDialog.hxx')
-rw-r--r--cui/source/inc/QrCodeGenDialog.hxx18
1 files changed, 3 insertions, 15 deletions
diff --git a/cui/source/inc/QrCodeGenDialog.hxx b/cui/source/inc/QrCodeGenDialog.hxx
index 4d5584fa3e53..a3ca38d48d4a 100644
--- a/cui/source/inc/QrCodeGenDialog.hxx
+++ b/cui/source/inc/QrCodeGenDialog.hxx
@@ -16,9 +16,6 @@
#include <com/sun/star/beans/XPropertySet.hpp>
-// cuitabarea included to use Button Box class for group of Radio Buttons
-#include "cuitabarea.hxx"
-
class QrCodeGenDialog : public weld::GenericDialogController
{
public:
@@ -33,23 +30,14 @@ protected:
private:
std::unique_ptr<weld::Entry> m_xEdittext;
- std::unique_ptr<weld::RadioButton> m_xRadioLow;
- std::unique_ptr<weld::RadioButton> m_xRadioMedium;
- std::unique_ptr<weld::RadioButton> m_xRadioQuartile;
- std::unique_ptr<weld::RadioButton> m_xRadioHigh;
+ std::unique_ptr<weld::RadioButton> m_xECC[4];
std::unique_ptr<weld::SpinButton> m_xSpinBorder;
css::uno::Reference<css::beans::XPropertySet> m_xExistingShapeProperties;
- /* maBox - holds radioButton, helped in writing code. */
- ButtonBox maBox;
- /* Stores which error correction is selected. */
- long m_aECCSelect;
- void SelectErrorCorrection(weld::ToggleButton&);
void GetErrorCorrection(long);
- static OUString GenerateQrCode(OUString aQrText, int aQrECC, int aQrBorder);
-
- DECL_LINK(SelectRadio_Impl, weld::ToggleButton&, void);
+ //Function contains QR Code Generating Library Calls
+ static OUString GenerateQRCode(OUString aQrText, long aQrECC, int aQrBorder);
};
#endif