--- a/QTfrontend/model/gameSchemeModel.h Wed May 16 18:22:28 2018 +0200
+++ b/QTfrontend/model/gameSchemeModel.h Wed Jul 31 23:14:27 2019 +0200
@@ -34,6 +34,8 @@
int rowCount(const QModelIndex & parent) const;
int columnCount(const QModelIndex & parent) const;
bool hasScheme(QString name);
+ bool hasScheme(QString name, int ignoreID);
+ bool renameScheme(int index, QString newName);
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());
@@ -47,6 +49,9 @@
public slots:
void Save();
+ signals:
+ void dataChanged(const QModelIndex &topLeft, const QModelIndex& bottomRight);
+
protected:
QList< QList<QVariant> > schemes;
};