Format code using clang-format

This commit is contained in:
Luis Ángel San Martín
2019-05-30 19:46:37 +02:00
parent e0eb94e3ae
commit e3ec56aa43
356 changed files with 19824 additions and 21874 deletions

View File

@ -12,48 +12,49 @@
class ServerConfigDialog : public QDialog
{
Q_OBJECT
public:
ServerConfigDialog(QWidget * parent = 0);
private:
QComboBox * ip;
QLineEdit * port;
Q_OBJECT
public:
ServerConfigDialog(QWidget *parent = 0);
QCheckBox * check;
QCheckBox * performanceWorkaroundCheck;
private:
QComboBox *ip;
QLineEdit *port;
QPushButton * close;
QPushButton * accept;
QLabel * qrCode;
QCheckBox *check;
QCheckBox *performanceWorkaroundCheck;
public slots:
void generateQR();
void generateQR(const QString & serverAddress);
void regenerateQR(const QString & ip);
void enableServer(int status);
QPushButton *close;
QPushButton *accept;
QLabel *qrCode;
public slots:
void generateQR();
void generateQR(const QString &serverAddress);
void regenerateQR(const QString &ip);
void enableServer(int status);
void enableperformanceWorkaround(int status);
void updatePort();
void updatePort();
signals:
void portChanged(QString port);
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;
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