QTfrontend/ui/page/pageroomslist.cpp
changeset 6732 c906dc78091f
parent 6700 e04da46ee43c
child 6735 050237b1500f
--- a/QTfrontend/ui/page/pageroomslist.cpp	Wed Feb 22 18:13:14 2012 +0100
+++ b/QTfrontend/ui/page/pageroomslist.cpp	Thu Feb 23 00:46:03 2012 +0400
@@ -24,7 +24,7 @@
 #include <QLineEdit>
 #include <QMessageBox>
 #include <QHeaderView>
-#include <QTableWidget>
+#include <QTableView>
 
 #include "ammoSchemeModel.h"
 #include "pageroomslist.h"
@@ -44,7 +44,7 @@
     newRoomLayout->addWidget(roomName);
     pageLayout->addLayout(newRoomLayout, 0, 0, 1, 2);
 
-    roomsList = new QTableWidget(this);
+    roomsList = new QTableView(this);
     roomsList->setSelectionBehavior(QAbstractItemView::SelectRows);
     roomsList->verticalHeader()->setVisible(false);
     roomsList->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
@@ -192,6 +192,7 @@
     BtnAdmin->setVisible(flag);
 }
 
+/*
 void PageRoomsList::setRoomsList(const QStringList & list)
 {
     QBrush red(QColor(255, 0, 0));
@@ -209,14 +210,7 @@
     roomsList->clear();
     roomsList->setColumnCount(7);
     roomsList->setHorizontalHeaderLabels(
-        QStringList() <<
-        QTableWidget::tr("Room Name") <<
-        QTableWidget::tr("C") <<
-        QTableWidget::tr("T") <<
-        QTableWidget::tr("Owner") <<
-        QTableWidget::tr("Map") <<
-        QTableWidget::tr("Rules") <<
-        QTableWidget::tr("Weapons")
+
     );
 
     // set minimum sizes
@@ -411,6 +405,7 @@
 
 //  roomsList->resizeColumnsToContents();
 }
+*/
 
 void PageRoomsList::onCreateClick()
 {
@@ -425,6 +420,7 @@
 
 void PageRoomsList::onJoinClick()
 {
+    /*
     QTableWidgetItem * curritem = roomsList->item(roomsList->currentRow(), 0);
     if (!curritem)
     {
@@ -453,6 +449,7 @@
     {
         emit askForJoinRoom(curritem->data(Qt::DisplayRole).toString());
     }
+*/
 }
 
 void PageRoomsList::onRefreshClick()