#ifndef Q_LINE_DELEGATE_H
#define Q_LINE_DELEGATE_H

#include <QtGui/QStyledItemDelegate>
#include <QtGui/QTableWidget>
#include <QtGui/QPen>

class QLineDelegate : public QStyledItemDelegate
{
    Q_OBJECT

public:
    QLineDelegate(QTableWidget* tableWidget);
protected:
    void paint(QPainter* painter,const QStyleOptionViewItem& option,const QModelIndex& index) const;
private:
    QPen         pen;
    QTableWidget*  widget;
};

#endif // Q_LINE_DELEGATE_H
