aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/guiSQLiteStudio/common/centerediconitemdelegate.h
blob: a1e01033ac5781a6a668aa3c8682feb112458559 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef CENTEREDICONITEMDELEGATE_H
#define CENTEREDICONITEMDELEGATE_H

#include <QStyledItemDelegate>

class CenteredIconItemDelegate : public QStyledItemDelegate
{
    public:
        explicit CenteredIconItemDelegate(QObject* parent = nullptr);

        void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
};

#endif // CENTEREDICONITEMDELEGATE_H