#ifndef MIDIBYTEDELEGATE_H
#define MIDIBYTEDELEGATE_H

#include <QStyledItemDelegate>

class MidiByteDelegate : public QStyledItemDelegate {
  public:
    MidiByteDelegate(QObject* pParent);
    virtual ~MidiByteDelegate();

    QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option,
                          const QModelIndex& index) const;

    QString displayText(const QVariant& value, const QLocale& locale) const;

    void setEditorData(QWidget* editor, const QModelIndex& index) const;

    void setModelData(QWidget* editor, QAbstractItemModel* model,
                      const QModelIndex& index) const;
};

#endif /* MIDIBYTEDELEGATE_H */
