QTfrontend/hwform.cpp
changeset 674 a15c8e3c69b3
parent 672 08ed55ea1e2a
child 681 7a20c50988ec
equal deleted inserted replaced
673:bd82104a28af 674:a15c8e3c69b3
    30 #include <QStackedLayout>
    30 #include <QStackedLayout>
    31 #include <QLineEdit>
    31 #include <QLineEdit>
    32 #include <QLabel>
    32 #include <QLabel>
    33 #include <QRadioButton>
    33 #include <QRadioButton>
    34 #include <QSpinBox>
    34 #include <QSpinBox>
       
    35 #include <QCloseEvent>
    35 
    36 
    36 #include "hwform.h"
    37 #include "hwform.h"
    37 #include "game.h"
    38 #include "game.h"
    38 #include "team.h"
    39 #include "team.h"
    39 #include "teamselect.h"
    40 #include "teamselect.h"
   603 	connect(game, SIGNAL(SendNet(const QByteArray &)), hwnet, SLOT(SendNet(const QByteArray &)));
   604 	connect(game, SIGNAL(SendNet(const QByteArray &)), hwnet, SLOT(SendNet(const QByteArray &)));
   604 	connect(hwnet, SIGNAL(FromNet(const QByteArray &)), game, SLOT(FromNet(const QByteArray &)));
   605 	connect(hwnet, SIGNAL(FromNet(const QByteArray &)), game, SLOT(FromNet(const QByteArray &)));
   605 
   606 
   606 	game->StartNet();
   607 	game->StartNet();
   607 }
   608 }
       
   609 
       
   610 void HWForm::closeEvent(QCloseEvent *event)
       
   611 {
       
   612 	config->SaveOptions();
       
   613 	event->accept();
       
   614 }