QTfrontend/model/roomslistmodel.cpp
changeset 6736 efad396abee9
parent 6733 5abbc345a82f
child 6757 ed9b3a567a3d
--- a/QTfrontend/model/roomslistmodel.cpp	Thu Feb 23 22:58:52 2012 +0400
+++ b/QTfrontend/model/roomslistmodel.cpp	Thu Feb 23 23:13:48 2012 +0400
@@ -5,6 +5,7 @@
 {
     m_headerData =
     QStringList()
+     << QString()
      << tr("Room Name")
      << tr("C")
      << tr("T")
@@ -35,14 +36,14 @@
     if(parent.isValid())
         return 0;
     else
-        return 7;
+        return 8;
 }
 
 QVariant RoomsListModel::data(const QModelIndex &index, int role) const
 {
     if (!index.isValid() || index.row() < 0
             || index.row() >= m_data.size()
-            || index.column() >= 7
+            || index.column() >= 8
             || (role != Qt::EditRole && role != Qt::DisplayRole)
        )
         return QVariant();
@@ -116,7 +117,6 @@
     QStringList result;
 
     result = info;
-    result.removeFirst();
 
     return result;
 }