mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -04:00
fixed compilation for Qt5.5 in OSX
This commit is contained in:
45
YACReaderLibrary/server_config_dialog.h
Normal file
45
YACReaderLibrary/server_config_dialog.h
Normal file
@ -0,0 +1,45 @@
|
||||
#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>
|
||||
#include <QCheckBox>
|
||||
|
||||
class ServerConfigDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ServerConfigDialog(QWidget * parent = 0);
|
||||
private:
|
||||
QComboBox * ip;
|
||||
QLineEdit * port;
|
||||
|
||||
QCheckBox * check;
|
||||
|
||||
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();
|
||||
void enableServer(int status);
|
||||
void updatePort();
|
||||
signals:
|
||||
void portChanged(QString port);
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user