Rev 264 | 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 <QStyledItemDelegate>#include <QModelIndex>#include <QObject>#include <QSize>#include <QTimeEdit>class timeDelegate : public QStyledItemDelegate{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;QString displayText ( const QVariant & value, const QLocale & locale ) const;};#endif // TIMEDELEGATE_H