Rev 107 | Rev 157 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/*============================================================================**** Project/Product :** Filename : timedelegate.h** Author(s) : DDP**** Description : A delgated widget to assist in the editing of time items** within a table*******==========================================================================*/#ifndef TIMEDELEGATE_H#define TIMEDELEGATE_H#include <QItemDelegate>#include <QModelIndex>#include <QObject>#include <QSize>#include <QTimeEdit>class timeDelegate : public QItemDelegate{Q_OBJECTpublic:timeDelegate(QObject *parent = 0);QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,const QModelIndex &index) const;void setEditorData(QWidget *editor, const QModelIndex &index) const;void setModelData(QWidget *editor, QAbstractItemModel *model,const QModelIndex &index) const;void updateEditorGeometry(QWidget *editor,const QStyleOptionViewItem &option, const QModelIndex &index) const;};#endif // TIMEDELEGATE_H