Subversion Repositories svn1-original

Rev

Rev 145 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 145 Rev 161
Line 12... Line 12...
12
 
12
 
13
 
13
 
14
#ifndef TIMEDELEGATE_H
14
#ifndef TIMEDELEGATE_H
15
#define TIMEDELEGATE_H
15
#define TIMEDELEGATE_H
16
 
16
 
17
#include <QItemDelegate>
17
#include <QStyledItemDelegate>
18
#include <QModelIndex>
18
#include <QModelIndex>
19
#include <QObject>
19
#include <QObject>
20
#include <QSize>
20
#include <QSize>
21
#include <QTimeEdit>
21
#include <QTimeEdit>
22
 
22
 
23
class timeDelegate : public QItemDelegate
23
class timeDelegate : public QStyledItemDelegate
24
{
24
{
25
    Q_OBJECT
25
    Q_OBJECT
26
 
26
 
27
public:
27
public:
28
    timeDelegate(QObject *parent = 0);
28
    timeDelegate(QObject *parent = 0);
Line 34... Line 34...
34
    void setModelData(QWidget *editor, QAbstractItemModel *model,
34
    void setModelData(QWidget *editor, QAbstractItemModel *model,
35
                      const QModelIndex &index) const;
35
                      const QModelIndex &index) const;
36
 
36
 
37
    void updateEditorGeometry(QWidget *editor,
37
    void updateEditorGeometry(QWidget *editor,
38
        const QStyleOptionViewItem &option, const QModelIndex &index) const;
38
        const QStyleOptionViewItem &option, const QModelIndex &index) const;
-
 
39
 
-
 
40
    QString displayText ( const QVariant & value, const QLocale & locale ) const;
39
};
41
};
40
 
42
 
41
#endif // TIMEDELEGATE_H
43
#endif // TIMEDELEGATE_H