Guitar
MyTableWidgetDelegate.h
Go to the documentation of this file.
1 #ifndef MYTABLEWIDGETDELEGATE_H
2 #define MYTABLEWIDGETDELEGATE_H
3 
4 #include <QStyledItemDelegate>
5 
6 
7 class MyTableWidgetDelegate : public QStyledItemDelegate {
8 public:
9  explicit MyTableWidgetDelegate(QObject *parent = nullptr);
10  void paint(QPainter *painter, const QStyleOptionViewItem &option, QModelIndex const &index) const override;
11  void paint_bg(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
12 };
13 
14 #endif // MYTABLEWIDGETDELEGATE_H
Definition: MyTableWidgetDelegate.h:7
MyTableWidgetDelegate(QObject *parent=nullptr)
Definition: MyTableWidgetDelegate.cpp:8
void paint_bg(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
Definition: MyTableWidgetDelegate.cpp:29
void paint(QPainter *painter, const QStyleOptionViewItem &option, QModelIndex const &index) const override
Definition: MyTableWidgetDelegate.cpp:68