1 #ifndef IMPORTMIDI_DELEGATE_H 2 #define IMPORTMIDI_DELEGATE_H 14 TimeSigEditor(
const QStringList &values, QWidget *parent =
nullptr);
16 QStringList
data()
const;
33 virtual QSize sizeHint ()
const;
46 QStringList
data()
const;
52 void checkBoxClicked(QListWidgetItem *);
53 void itemClicked(QListWidgetItem *);
56 void setAllCheckBox();
58 void connectCheckBoxes();
59 void disconnectCheckBoxes();
73 void paint(QPainter *painter,
74 const QStyleOptionViewItem &option,
75 const QModelIndex &index)
const;
77 QWidget* createEditor(QWidget *parent,
78 const QStyleOptionViewItem &option,
79 const QModelIndex &index)
const;
81 void setEditorData(QWidget *editor,
const QModelIndex &index)
const;
82 void setModelData(QWidget *editor, QAbstractItemModel *model,
83 const QModelIndex &index)
const;
86 void commitAndCloseEditor();
89 void drawArrow(QPainter *painter,
90 const QStyleOptionViewItem &option,
91 const QModelIndex &index)
const;
100 #endif // IMPORTMIDI_DELEGATE_H Definition: importmidi_delegate.h:9
std::vector< Qt::CheckState > _states
Definition: importmidi_delegate.h:62
QWidget * appWindow
Definition: importmidi_delegate.h:93
SizedListWidget * _listWidget
Definition: importmidi_delegate.h:61
QComboBox * _comboBoxDenominator
Definition: importmidi_delegate.h:23
Definition: aeolus.cpp:26
TimeSigEditor(const QStringList &values, QWidget *parent=nullptr)
Definition: importmidi_delegate.cpp:5
Definition: importmidi_view.h:7
QStringList data() const
Definition: importmidi_delegate.cpp:78
const bool rightArrowAlign
Definition: importmidi_delegate.h:94
QComboBox * _comboBoxNumerator
Definition: importmidi_delegate.h:22
Definition: importmidi_delegate.h:39
Definition: importmidi_delegate.h:66