Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 157 → Rev 158

/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