QTfrontend/netwwwwidget.cpp
changeset 632 5e09ae25729f
parent 625 373353eaa742
child 634 b9db5ff5cfdb
equal deleted inserted replaced
631:f7df3889f2ff 632:5e09ae25729f
    22 
    22 
    23 #include "netwwwwidget.h"
    23 #include "netwwwwidget.h"
    24 #include "hwconsts.h"
    24 #include "hwconsts.h"
    25 
    25 
    26 HWNetWwwWidget::HWNetWwwWidget(QWidget* parent) :
    26 HWNetWwwWidget::HWNetWwwWidget(QWidget* parent) :
    27   QWidget(parent), mainLayout(this)
    27   HWNetServersWidget(parent), mainLayout(this)
    28 {
    28 {
    29 	serversList = new QListWidget(this);
       
    30 	mainLayout.setMargin(0);
       
    31 	mainLayout.addWidget(serversList);
       
    32 
       
    33 	http = new QHttp(this);
    29 	http = new QHttp(this);
    34 	http->setHost("www.hedgewars.org", 80);
    30 	http->setHost("www.hedgewars.org", 80);
    35 	connect(http, SIGNAL(requestFinished(int, bool)), this, SLOT(onClientRead(int, bool)));
    31 	connect(http, SIGNAL(requestFinished(int, bool)), this, SLOT(onClientRead(int, bool)));
    36 	updateList();
       
    37 }
    32 }
    38 // http://hedgewars.org/games/create
    33 // http://hedgewars.org/games/create
    39 // http://www.hedgewars.org/games/update_game?id=1&key=pufidzuk
    34 // http://www.hedgewars.org/games/update_game?id=1&key=pufidzuk
    40 // http://www.hedgewars.org/games/destroy_game?id=5&key=wrdeough
    35 // http://www.hedgewars.org/games/destroy_game?id=5&key=wrdeough
    41 void HWNetWwwWidget::updateList()
    36 void HWNetWwwWidget::updateList()