/trunk/DBViewer/delegate.h |
---|
90,4 → 90,20 |
class TimeEditDelegate : public QItemDelegate |
{ |
Q_OBJECT |
public: |
TimeEditDelegate(const QString timeFormat = "dd.MM.yyyy hh:mm:ss",QObject *parent = 0) : QItemDelegate(parent) {this->timeformat = timeFormat;}; |
void paint(QPainter *painter, const QStyleOptionViewItem &option, |
const QModelIndex &index) const; |
private: |
QString timeformat; |
}; |
#endif // DELEGATE_H |