Implemented drumpad preset detail widget

This commit is contained in:
2022-12-28 00:47:20 +01:00
parent b86de5695e
commit 015d42d977
14 changed files with 378 additions and 75 deletions

21
drumpadpresettagsmodel.h Normal file
View File

@@ -0,0 +1,21 @@
#pragma once
#include <QAbstractListModel>
#include "drumpadpresets.h"
namespace drumpad_presets { struct Preset; }
class DrumPadPresetTagsModel : public QAbstractListModel
{
public:
DrumPadPresetTagsModel(QObject *parent = nullptr);
void setPreset(const drumpad_presets::Preset &preset);
int rowCount(const QModelIndex &parent) const override;
QVariant data(const QModelIndex &index, int role) const override;
private:
std::vector<QString> m_tags;
};