Mixxx

/home/maxime/Projets/Mixxx/1.10/mixxx/src/midi/midistatusdelegate.h

Go to the documentation of this file.
00001 /*
00002  * midistatusdelegate.h
00003  *
00004  *  Created on: 1-Feb-2009
00005  *      Author: asantoni
00006  */
00007 
00008 #ifndef MIDISTATUSDELEGATE_H_
00009 #define MIDISTATUSDELEGATE_H_
00010 
00011 #include <QItemDelegate>
00012 #include <QModelIndex>
00013 #include <QObject>
00014 #include <QSize>
00015 #include <QComboBox>
00016 #include <QLabel>
00017 
00018 class MidiStatusDelegate : public QItemDelegate
00019 {
00020  Q_OBJECT
00021 
00022 public:
00023   MidiStatusDelegate(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 /* MIDISTATUSDELEGATE_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines