summaryrefslogtreecommitdiffstats
blob: 9ec800f5b420f6f8651f19bffd38944233b76372 (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_ = 28;
		static const int margin_ = 4;
	};
}