Replace libqrencode with nayuki/QR-Code-generator

This commit is contained in:
Felix Kauselmann
2023-03-25 11:06:17 +01:00
parent ad4139e017
commit 8f631763ce
17 changed files with 1718 additions and 103 deletions

View File

@ -5,10 +5,8 @@
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QPixmap>
#include <QComboBox>
#include <QCheckBox>
#include <QLibrary>
class ServerConfigDialog : public QDialog
{
@ -37,24 +35,4 @@ public slots:
signals:
void portChanged(QString port);
};
class QrEncoder
{
public:
QrEncoder();
QBitmap encode(const QString &string);
private:
/*libqrencode data structures*/
typedef struct {
int version; ///< version of the symbol
int width; ///< width of the symbol
unsigned char *data; ///< symbol data
} QRcode;
typedef QRcode *(*_QRcode_encodeString8bit)(char[], int, int);
typedef void (*_QRcode_free)(QRcode *);
_QRcode_free QRcode_free;
_QRcode_encodeString8bit QRcode_encodeString8bit;
};
#endif