Subversion Repositories svn1-original

Rev

Rev 145 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
111 david 1
#ifndef TIMEDELEGATE_H
2
#define TIMEDELEGATE_H
3
 
4
#include <QItemDelegate>
5
#include <QModelIndex>
6
#include <QObject>
7
#include <QSize>
8
#include <QTimeEdit>
9
 
10
class timeDelegate : public QItemDelegate
11
{
12
    Q_OBJECT
13
 
14
public:
15
    timeDelegate(QObject *parent = 0);
16
 
17
    QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
18
                          const QModelIndex &index) const;
19
 
20
    void setEditorData(QWidget *editor, const QModelIndex &index) const;
21
    void setModelData(QWidget *editor, QAbstractItemModel *model,
22
                      const QModelIndex &index) const;
23
 
24
    void updateEditorGeometry(QWidget *editor,
25
        const QStyleOptionViewItem &option, const QModelIndex &index) const;
26
};
27
 
28
#endif // TIMEDELEGATE_H