COPASI API  4.16.103
CQSpinBoxDelegate.h
Go to the documentation of this file.
1 // Copyright (C) 2010 - 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 // Copyright (C) 2009 by Pedro Mendes, Virginia Tech Intellectual
7 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
8 // and The University of Manchester.
9 // All rights reserved.
10 
11 #ifndef CQSpinBoxDelegate_H
12 #define CQSpinBoxDelegate_H
13 
14 #include <QtGui/QItemDelegate>
15 
16 class CQSpinBoxDelegate : public QItemDelegate
17 {
18  Q_OBJECT
19 
20 public:
21  CQSpinBoxDelegate(QObject *parent = 0);
22 
23  QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
24  const QModelIndex &index) const;
25 
26  void setEditorData(QWidget *editor, const QModelIndex &index) const;
27  void setModelData(QWidget *editor, QAbstractItemModel *model,
28  const QModelIndex &index) const;
29 
30  void updateEditorGeometry(QWidget *editor,
31  const QStyleOptionViewItem &option, const QModelIndex &index) const;
32 };
33 #endif //CQSpinBoxDelegate_H
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
CQSpinBoxDelegate(QObject *parent=0)
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
void setEditorData(QWidget *editor, const QModelIndex &index) const