mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
23 lines
508 B
C++
23 lines
508 B
C++
#pragma once
|
|
|
|
#include <QStyledItemDelegate>
|
|
|
|
namespace chatterino {
|
|
|
|
class SwitcherItemDelegate : public QStyledItemDelegate
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SwitcherItemDelegate(QObject *parent = nullptr);
|
|
~SwitcherItemDelegate();
|
|
|
|
void paint(QPainter *painter, const QStyleOptionViewItem &option,
|
|
const QModelIndex &index) const override;
|
|
|
|
QSize sizeHint(const QStyleOptionViewItem &option,
|
|
const QModelIndex &index) const override;
|
|
};
|
|
|
|
} // namespace chatterino
|