Mixxx

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

Go to the documentation of this file.
00001 /*
00002  * midinodelegate.h
00003  *
00004  *  Created on: 1-Feb-2009
00005  *      Author: asantoni
00006  */
00007 
00008 #ifndef MIDINODELEGATE_H_
00009 #define MIDINODELEGATE_H_
00010 
00011  #include <QItemDelegate>
00012  #include <QModelIndex>
00013  #include <QObject>
00014  #include <QSize>
00015  #include <QSpinBox>
00016 
00017 class MidiNoDelegate : public QItemDelegate
00018 {
00019  Q_OBJECT
00020 
00021 public:
00022     MidiNoDelegate(QObject *parent = 0);
00023  void paint(QPainter *painter, const QStyleOptionViewItem &option,
00024                          const QModelIndex &index) const;
00025  QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
00026                        const QModelIndex &index) const;
00027 
00028  void setEditorData(QWidget *editor, const QModelIndex &index) const;
00029  void setModelData(QWidget *editor, QAbstractItemModel *model,
00030                    const QModelIndex &index) const;
00031 
00032  void updateEditorGeometry(QWidget *editor,
00033      const QStyleOptionViewItem &option, const QModelIndex &index) const;
00034 };
00035 
00036 #endif /* MIDINODELEGATE_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines