32 AmmoSchemeModel(QObject * parent, const QString & fileName); |
32 AmmoSchemeModel(QObject * parent, const QString & fileName); |
33 |
33 |
34 QVariant headerData(int section, Qt::Orientation orientation, int role) const; |
34 QVariant headerData(int section, Qt::Orientation orientation, int role) const; |
35 int rowCount(const QModelIndex & parent) const; |
35 int rowCount(const QModelIndex & parent) const; |
36 int columnCount(const QModelIndex & parent) const; |
36 int columnCount(const QModelIndex & parent) const; |
|
37 bool hasScheme(QString name); |
37 Qt::ItemFlags flags(const QModelIndex & index) const; |
38 Qt::ItemFlags flags(const QModelIndex & index) const; |
38 bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole); |
39 bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole); |
39 bool insertRows(int row, int count, const QModelIndex & parent = QModelIndex()); |
40 bool insertRows(int row, int count, const QModelIndex & parent = QModelIndex()); |
40 bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex()); |
41 bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex()); |
41 QVariant data(const QModelIndex &index, int role) const; |
42 QVariant data(const QModelIndex &index, int role) const; |