diff -r 54b9fd6f4e84 -r 0c8deb338990 QTfrontend/model/gameSchemeModel.h --- a/QTfrontend/model/gameSchemeModel.h Tue Jul 24 20:46:22 2018 +0200 +++ b/QTfrontend/model/gameSchemeModel.h Thu Jul 26 14:18:23 2018 +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 > schemes; };