Preset steps can be added/removed

This commit is contained in:
2023-03-04 20:19:10 +01:00
parent 4720c05cb1
commit 0b870d85f4
6 changed files with 289 additions and 39 deletions

View File

@@ -27,10 +27,17 @@ public:
QMap<int, QVariant> itemData(const QModelIndex &index) const override;
QHash<int, QByteArray> roleNames() const override;
bool insertRows(int row, int count, const QModelIndex &parent) override;
bool removeRows(int row, int count, const QModelIndex &parent) override;
signals:
void controllerChanged(DmxController *controller);
void presetIdChanged(int presetId);
private slots:
void otherPresetStepInserted(const PresetConfig &preset, int first, int last);
void otherPresetStepRemoved(const PresetConfig &preset, int first, int last);
private:
DmxController *m_controller{};
int m_presetId{-1};