QTfrontend/netudpwidget.cpp
changeset 668 0d7683a66d61
parent 667 194dc62d1519
child 883 07a568ba44e0
--- a/QTfrontend/netudpwidget.cpp	Sat Dec 15 20:08:08 2007 +0000
+++ b/QTfrontend/netudpwidget.cpp	Sat Dec 15 20:28:58 2007 +0000
@@ -69,38 +69,3 @@
 
 	return games[index.row()][index.column()];
 }
-
-QVariant HWNetUdpModel::headerData(int section,
-            Qt::Orientation orientation, int role) const
-{
-	if (role != Qt::DisplayRole)
-		return QVariant();
-
-	if (orientation == Qt::Horizontal)
-	{
-		switch (section)
-		{
-			case 0: return tr("Title");
-			case 1: return tr("IP");
-			case 2: return tr("Port");
-			default: return QVariant();
-		}
-	} else
-		return QString("%1").arg(section + 1);
-}
-
-int HWNetUdpModel::rowCount(const QModelIndex &parent) const
-{
-	if (parent.isValid())
-		return 0;
-	else
-		return games.size();
-}
-
-int HWNetUdpModel::columnCount(const QModelIndex & parent) const
-{
-	if (parent.isValid())
-		return 0;
-	else
-		return 3;
-}