32 QVariant headerData(int section, Qt::Orientation orientation, int role) const; |
32 QVariant headerData(int section, Qt::Orientation orientation, int role) const; |
33 int rowCount(const QModelIndex & parent) const; |
33 int rowCount(const QModelIndex & parent) const; |
34 int columnCount(const QModelIndex & parent) const; |
34 int columnCount(const QModelIndex & parent) const; |
35 Qt::ItemFlags flags(const QModelIndex & index) const; |
35 Qt::ItemFlags flags(const QModelIndex & index) const; |
36 bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole); |
36 bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole); |
|
37 bool insertRows(int row, int count, const QModelIndex & parent = QModelIndex()); |
|
38 bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex()); |
|
39 QVariant data(const QModelIndex &index, int role) const; |
37 |
40 |
38 signals: |
41 signals: |
39 void dataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight); |
42 void dataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight); |
40 |
43 |
41 protected: |
44 protected: |
42 QList<QStringList> schemes; |
45 QList<QStringList> schemes; |
|
46 |
|
47 private: |
|
48 QStringList defaultScheme; |
43 }; |
49 }; |
44 |
50 |
45 #endif // _AMMO_SCHEME_MODEL_INCLUDED |
51 #endif // _AMMO_SCHEME_MODEL_INCLUDED |