summaryrefslogtreecommitdiffstats
blob: 934f0bbc3dfbb0cb2f9451d5451cd56c282c733c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include <QStyledItemDelegate>

namespace Swift {
	class RosterDelegate : public QStyledItemDelegate {
	public:
		QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
		void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
	private:
		static const int avatarSize_ = 32;
		static const int margin_ = 4;
	};
}