diff -r 803b277e4894 -r 3f21a9dc93d0 QTfrontend/ammoSchemeModel.h --- a/QTfrontend/ammoSchemeModel.h Sat Mar 06 10:54:24 2010 +0000 +++ b/QTfrontend/ammoSchemeModel.h Sat Mar 06 10:59:20 2010 +0000 @@ -26,54 +26,54 @@ class AmmoSchemeModel : public QAbstractTableModel { - Q_OBJECT + Q_OBJECT public: - AmmoSchemeModel(QObject * parent, const QString & fileName); + AmmoSchemeModel(QObject * parent, const QString & fileName); - QVariant headerData(int section, Qt::Orientation orientation, int role) const; - int rowCount(const QModelIndex & parent) const; - int columnCount(const QModelIndex & parent) const; - Qt::ItemFlags flags(const QModelIndex & index) const; - bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole); - bool insertRows(int row, int count, const QModelIndex & parent = QModelIndex()); - bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex()); - QVariant data(const QModelIndex &index, int role) const; + QVariant headerData(int section, Qt::Orientation orientation, int role) const; + int rowCount(const QModelIndex & parent) const; + int columnCount(const QModelIndex & parent) const; + Qt::ItemFlags flags(const QModelIndex & index) const; + bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole); + bool insertRows(int row, int count, const QModelIndex & parent = QModelIndex()); + bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex()); + QVariant data(const QModelIndex &index, int role) const; - const int numberOfDefaultSchemes; + const int numberOfDefaultSchemes; public slots: - void Save(); + void Save(); signals: - void dataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight); + void dataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight); protected: - QList< QList > schemes; + QList< QList > schemes; private: - QSettings fileConfig; + QSettings fileConfig; - QStringList spNames; + QStringList spNames; }; class NetAmmoSchemeModel : public QAbstractTableModel { - Q_OBJECT + Q_OBJECT public: - NetAmmoSchemeModel(QObject * parent); + NetAmmoSchemeModel(QObject * parent); - QVariant headerData(int section, Qt::Orientation orientation, int role) const; - int rowCount(const QModelIndex & parent) const; - int columnCount(const QModelIndex & parent) const; - QVariant data(const QModelIndex &index, int role) const; + QVariant headerData(int section, Qt::Orientation orientation, int role) const; + int rowCount(const QModelIndex & parent) const; + int columnCount(const QModelIndex & parent) const; + QVariant data(const QModelIndex &index, int role) const; public slots: - void setNetSchemeConfig(QStringList & cfg); + void setNetSchemeConfig(QStringList & cfg); private: - QList netScheme; + QList netScheme; }; #endif // _AMMO_SCHEME_MODEL_INCLUDED