Subversion Repositories svn1

Rev

Rev 107 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 107 Rev 110
Line 52... Line 52...
52
class SpinBoxDelegate : public QItemDelegate
52
class SpinBoxDelegate : public QItemDelegate
53
{
53
{
54
    Q_OBJECT
54
    Q_OBJECT
55
 
55
 
56
public:
56
public:
57
    SpinBoxDelegate(QObject *parent = 0);
57
    SpinBoxDelegate(int minvalue = 0, int maxvalue = 0, QObject *parent = 0);
58
 
58
 
59
    QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
59
    QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
60
                          const QModelIndex &index) const;
60
                          const QModelIndex &index) const;
61
 
61
 
-
 
62
    int min_value;
-
 
63
    int max_value;
-
 
64
 
62
    void setEditorData(QWidget *editor, const QModelIndex &index) const;
65
    void setEditorData(QWidget *editor, const QModelIndex &index) const;
63
    void setModelData(QWidget *editor, QAbstractItemModel *model,
66
    void setModelData(QWidget *editor, QAbstractItemModel *model,
64
                      const QModelIndex &index) const;
67
                      const QModelIndex &index) const;
65
 
68
 
66
    void updateEditorGeometry(QWidget *editor,
69
    void updateEditorGeometry(QWidget *editor,