QTfrontend/model/roomslistmodel.h
changeset 15900 fc3cb23fd26f
parent 11046 47a8c19ecb60
--- a/QTfrontend/model/roomslistmodel.h	Fri Sep 23 12:47:47 2022 -0400
+++ b/QTfrontend/model/roomslistmodel.h	Tue Sep 27 14:59:03 2022 +0300
@@ -42,8 +42,10 @@
         TeamCountColumn,
         OwnerColumn,
         MapColumn,
+        ScriptColumn,
         SchemeColumn,
-        WeaponsColumn
+        WeaponsColumn,
+        VersionColumn,
     };
 
     explicit RoomsListModel(QObject *parent = 0);
@@ -51,6 +53,7 @@
     QVariant headerData(int section, Qt::Orientation orientation, int role) const;
     int rowCount(const QModelIndex & parent) const;
     int columnCount(const QModelIndex & parent) const;
+    int columnCountSupported() const { return c_nColumns; };
     QVariant data(const QModelIndex &index, int role) const;
 
 public slots:
@@ -66,6 +69,7 @@
     QStringList m_headerData;
     MapModel * m_staticMapModel;
     MapModel * m_missionMapModel;
+    static QString protoToVersion(const QString & proto);
 };
 
 #endif // HEDGEWARS_ROOMSLISTMODEL_H