mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
38 lines
736 B
C++
38 lines
736 B
C++
#ifndef __SERVER_CONFIG_DIALOG_H
|
|
#define __SERVER_CONFIG_DIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QLabel>
|
|
#include <QLineEdit>
|
|
#include <QPushButton>
|
|
#include <QComboBox>
|
|
#include <QCheckBox>
|
|
|
|
class ServerConfigDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ServerConfigDialog(QWidget *parent = 0);
|
|
void showEvent(QShowEvent *event) override;
|
|
|
|
private:
|
|
QComboBox *ip;
|
|
QLineEdit *port;
|
|
|
|
QCheckBox *check;
|
|
|
|
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 updatePort();
|
|
signals:
|
|
void portChanged(QString port);
|
|
};
|
|
#endif
|