QTfrontend/model/roomslistmodel.h
changeset 6993 47830cf50574
parent 6983 ede55af89e78
child 8377 869f80966a77
--- a/QTfrontend/model/roomslistmodel.h	Wed May 02 11:43:43 2012 +0100
+++ b/QTfrontend/model/roomslistmodel.h	Wed May 02 13:00:10 2012 +0200
@@ -33,6 +33,19 @@
 {
     Q_OBJECT
 public:
+    // if you add a column here, also incr. c_nColumns in constructor
+    // also adjust header in constructor to changes
+    enum Column {
+        StateColumn,
+        NameColumn,
+        PlayerCountColumn,
+        TeamCountColumn,
+        OwnerColumn,
+        MapColumn,
+        SchemeColumn,
+        WeaponsColumn
+    };
+
     explicit RoomsListModel(QObject *parent = 0);
 
     QVariant headerData(int section, Qt::Orientation orientation, int role) const;