Rev 138 | Rev 180 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 138 | Rev 158 | ||
---|---|---|---|
Line 88... | Line 88... | ||
88 | //QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
88 | //QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
89 | }; |
89 | }; |
90 | 90 | ||
91 | 91 | ||
92 | 92 | ||
- | 93 | ||
- | 94 | ||
- | 95 | class TimeEditDelegate : public QItemDelegate |
|
- | 96 | {
|
|
- | 97 | Q_OBJECT |
|
- | 98 | ||
- | 99 | public: |
|
- | 100 | TimeEditDelegate(const QString timeFormat = "dd.MM.yyyy hh:mm:ss",QObject *parent = 0) : QItemDelegate(parent) {this->timeformat = timeFormat;}; |
|
- | 101 | void paint(QPainter *painter, const QStyleOptionViewItem &option, |
|
- | 102 | const QModelIndex &index) const; |
|
- | 103 | ||
- | 104 | private: |
|
- | 105 | QString timeformat;
|
|
- | 106 | }; |
|
- | 107 | ||
- | 108 | ||
93 | #endif // DELEGATE_H
|
109 | #endif // DELEGATE_H
|