vanilla/app/udpaddressdialog.h
2024-08-06 03:11:25 -07:00

24 lines
No EOL
480 B
C++

#ifndef UDP_ADDRESS_DIALOG
#define UDP_ADDRESS_DIALOG
#include <QDialog>
#include <QHostAddress>
#include <QLineEdit>
class UdpAddressDialog : public QDialog
{
Q_OBJECT
public:
UdpAddressDialog(QWidget *parent = nullptr);
inline const QHostAddress &acceptedAddress() const { return m_acceptedAddress; }
public slots:
virtual void done(int r) override;
private:
QLineEdit *m_addressLine;
QHostAddress m_acceptedAddress;
};
#endif // UDP_ADDRESS_DIALOG