QTfrontend/ui/dialog/input_ip.cpp
changeset 8609 3f6c08223aa1
parent 7795 ba32d3f9e567
child 9080 9b42757d7e71
equal deleted inserted replaced
8608:50cc0131b109 8609:3f6c08223aa1
    21 #include <QPushButton>
    21 #include <QPushButton>
    22 #include <QGridLayout>
    22 #include <QGridLayout>
    23 #include <QLabel>
    23 #include <QLabel>
    24 
    24 
    25 #include "input_ip.h"
    25 #include "input_ip.h"
       
    26 #include "hwconsts.h"
    26 
    27 
    27 HWHostPortDialog::HWHostPortDialog(QWidget* parent) : QDialog(parent)
    28 HWHostPortDialog::HWHostPortDialog(QWidget* parent) : QDialog(parent)
    28 {
    29 {
    29     QGridLayout * layout = new QGridLayout(this);
    30     QGridLayout * layout = new QGridLayout(this);
    30 
    31 
    64     this->setWindowModality(Qt::WindowModal);
    65     this->setWindowModality(Qt::WindowModal);
    65 }
    66 }
    66 
    67 
    67 void HWHostPortDialog::setDefaultPort()
    68 void HWHostPortDialog::setDefaultPort()
    68 {
    69 {
    69     sbPort->setValue(46631);
    70     sbPort->setValue(NETGAME_DEFAULT_PORT);
    70 }
    71 }