![]() |
Mixxx
|
00001 /* 00002 * midioptiondelegate.h 00003 * 00004 * Created on: 11-April-2009 00005 * Author: asantoni 00006 */ 00007 00008 #ifndef MIDIOPTIONDELEGATE_H_ 00009 #define MIDIOPTIONDELEGATE_H_ 00010 00011 #include <QItemDelegate> 00012 #include <QModelIndex> 00013 #include <QObject> 00014 #include <QSize> 00015 #include <QComboBox> 00016 #include <QLabel> 00017 00018 class MidiOptionDelegate : public QItemDelegate 00019 { 00020 Q_OBJECT 00021 00022 public: 00023 MidiOptionDelegate(QObject *parent = 0); 00024 00025 QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, 00026 const QModelIndex &index) const; 00027 void paint(QPainter *painter, const QStyleOptionViewItem &option, 00028 const QModelIndex &index) const; 00029 void setEditorData(QWidget *editor, const QModelIndex &index) const; 00030 void setModelData(QWidget *editor, QAbstractItemModel *model, 00031 const QModelIndex &index) const; 00032 00033 void updateEditorGeometry(QWidget *editor, 00034 const QStyleOptionViewItem &option, const QModelIndex &index) const; 00035 00036 private: 00037 }; 00038 00039 #endif /* MIDIOPTIONDELEGATE_H_ */