QTfrontend/ammoSchemeModel.h
changeset 1940 bbdca883b5f9
parent 1902 aeadb10c2d77
child 2948 3f21a9dc93d0
equal deleted inserted replaced
1939:4b8e4cd9e7c0 1940:bbdca883b5f9
    38 	bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
    38 	bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
    39 	bool insertRows(int row, int count, const QModelIndex & parent = QModelIndex());
    39 	bool insertRows(int row, int count, const QModelIndex & parent = QModelIndex());
    40 	bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex());
    40 	bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex());
    41 	QVariant data(const QModelIndex &index, int role) const;
    41 	QVariant data(const QModelIndex &index, int role) const;
    42 
    42 
       
    43 	const int numberOfDefaultSchemes;
       
    44 
    43 public slots:
    45 public slots:
    44 	void Save();
    46 	void Save();
    45 
    47 
    46 signals:
    48 signals:
    47 	void dataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight);
    49 	void dataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight);
    51 
    53 
    52 private:
    54 private:
    53 	QSettings fileConfig;
    55 	QSettings fileConfig;
    54 
    56 
    55 	QStringList spNames;
    57 	QStringList spNames;
    56 
       
    57 	const int numberOfDefaultSchemes;
       
    58 };
    58 };
    59 
    59 
    60 class NetAmmoSchemeModel : public QAbstractTableModel
    60 class NetAmmoSchemeModel : public QAbstractTableModel
    61 {
    61 {
    62 	Q_OBJECT
    62 	Q_OBJECT