--- a/QTfrontend/model/netserverslist.cpp Mon Jan 30 23:20:28 2012 +0100
+++ b/QTfrontend/model/netserverslist.cpp Mon Jan 30 17:32:18 2012 -0500
@@ -22,7 +22,7 @@
#include "netserverslist.h"
HWNetServersModel::HWNetServersModel(QObject* parent) :
- QAbstractTableModel(parent)
+ QAbstractTableModel(parent)
{
}
@@ -33,7 +33,7 @@
}
QVariant HWNetServersModel::headerData(int section,
- Qt::Orientation orientation, int role) const
+ Qt::Orientation orientation, int role) const
{
if (role != Qt::DisplayRole)
return QVariant();
@@ -42,12 +42,17 @@
{
switch (section)
{
- case 0: return tr("Title");
- case 1: return tr("IP");
- case 2: return tr("Port");
- default: return QVariant();
+ case 0:
+ return tr("Title");
+ case 1:
+ return tr("IP");
+ case 2:
+ return tr("Port");
+ default:
+ return QVariant();
}
- } else
+ }
+ else
return QString("%1").arg(section + 1);
}