QTfrontend/netwwwwidget.cpp
changeset 665 5c7bfc8bac6a
parent 664 f0af2401f981
child 668 0d7683a66d61
--- a/QTfrontend/netwwwwidget.cpp	Sat Dec 15 18:58:55 2007 +0000
+++ b/QTfrontend/netwwwwidget.cpp	Sat Dec 15 19:40:50 2007 +0000
@@ -17,29 +17,17 @@
  */
 
 #include <QHttp>
-#include <QListWidget>
-#include <QDebug>
 #include <QDomDocument>
 #include <QDomElement>
 #include <QDomNode>
 #include <QDomText>
+#include <QDebug>
 
 #include "netwwwwidget.h"
 #include "hwconsts.h"
 
-HWNetWwwWidget::HWNetWwwWidget(QWidget* parent) :
-  HWNetServersWidget(parent)
-{
-	serversList->setModel(new HWNetWwwModel);
-}
 
-void HWNetWwwWidget::updateList()
-{
-	static_cast<HWNetWwwModel *>(serversList->model())->updateList();
-}
-
-
-HWNetWwwModel::HWNetWwwModel(QObject *parent) : QAbstractTableModel(parent)
+HWNetWwwModel::HWNetWwwModel(QObject *parent) : HWNetServersModel(parent)
 {
 	http = new QHttp(this);
 	http->setHost("www.hedgewars.org", 80);