#ifndef __SERVER_CONFIG_DIALOG_H #define __SERVER_CONFIG_DIALOG_H #include #include #include #include #include #include #include class ServerConfigDialog : public QDialog { Q_OBJECT public: ServerConfigDialog(QWidget * parent = 0); private: QLabel * ipLabel; QLabel * portLabel; QLineEdit * portEdit; QPushButton * close; QPushButton * accept; QLabel * qrCode; QPixmap * qrCodeImage; QProcess * qrGenerator; public slots: void generateQR(); void generateQR(const QString & serverAddress); void updateImage(); signals: void portChanged(QString port); }; #endif