mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Corregido bug que provocaba el fallo de YACReader al pasar muy r?pido las p?ginas. Modificado el di?logo "server config" para que muestre todas las ips y regenere el c?digo qr en caso de que el usuario cambie la ip.
38 lines
741 B
C++
38 lines
741 B
C++
#ifndef __SERVER_CONFIG_DIALOG_H
|
|
#define __SERVER_CONFIG_DIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QLabel>
|
|
#include <QLineEdit>
|
|
#include <QPushButton>
|
|
#include <QPixmap>
|
|
#include <QProcess>
|
|
#include <QPixmap>
|
|
#include <QComboBox>
|
|
|
|
class ServerConfigDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ServerConfigDialog(QWidget * parent = 0);
|
|
private:
|
|
QComboBox * ip;
|
|
QLineEdit * port;
|
|
QPushButton * close;
|
|
QPushButton * accept;
|
|
QLabel * qrCode;
|
|
QPixmap * qrCodeImage;
|
|
|
|
QProcess * qrGenerator;
|
|
public slots:
|
|
void generateQR();
|
|
void generateQR(const QString & serverAddress);
|
|
void regenerateQR(const QString & ip);
|
|
void updateImage();
|
|
signals:
|
|
void portChanged(QString port);
|
|
|
|
};
|
|
|
|
|
|
#endif |