update map lists when new maps and layouts are added

This commit is contained in:
garak
2023-02-08 19:59:45 -05:00
parent a4fdb0de64
commit a14e70ef53
4 changed files with 58 additions and 1 deletions

View File

@@ -32,6 +32,8 @@ public:
QStandardItem *createGroupItem(QString groupName, int groupIndex);
QStandardItem *createMapItem(QString mapName, int groupIndex, int mapIndex);
QStandardItem *insertMapItem(QString mapName, QString groupName);
QStandardItem *getItem(const QModelIndex &index) const;
QModelIndex indexOfMap(QString mapName);
@@ -68,6 +70,8 @@ public:
QStandardItem *createAreaItem(QString areaName, int areaIndex);
QStandardItem *createMapItem(QString mapName, int areaIndex, int mapIndex);
QStandardItem *insertMapItem(QString mapName, QString areaName, int groupIndex);
QStandardItem *getItem(const QModelIndex &index) const;
QModelIndex indexOfMap(QString mapName);
@@ -104,6 +108,8 @@ public:
QStandardItem *createLayoutItem(QString layoutId);
QStandardItem *createMapItem(QString mapName);
QStandardItem *insertMapItem(QString mapName, QString layoutId);
QStandardItem *getItem(const QModelIndex &index) const;
QModelIndex indexOfLayout(QString layoutName);