equal
deleted
inserted
replaced
31 |
31 |
32 class RoomsListModel : public QAbstractTableModel |
32 class RoomsListModel : public QAbstractTableModel |
33 { |
33 { |
34 Q_OBJECT |
34 Q_OBJECT |
35 public: |
35 public: |
|
36 // if you add a column here, also incr. c_nColumns in constructor |
|
37 // also adjust header in constructor to changes |
|
38 enum Column { |
|
39 StateColumn, |
|
40 NameColumn, |
|
41 PlayerCountColumn, |
|
42 TeamCountColumn, |
|
43 OwnerColumn, |
|
44 MapColumn, |
|
45 SchemeColumn, |
|
46 WeaponsColumn |
|
47 }; |
|
48 |
36 explicit RoomsListModel(QObject *parent = 0); |
49 explicit RoomsListModel(QObject *parent = 0); |
37 |
50 |
38 QVariant headerData(int section, Qt::Orientation orientation, int role) const; |
51 QVariant headerData(int section, Qt::Orientation orientation, int role) const; |
39 int rowCount(const QModelIndex & parent) const; |
52 int rowCount(const QModelIndex & parent) const; |
40 int columnCount(const QModelIndex & parent) const; |
53 int columnCount(const QModelIndex & parent) const; |