blob: 4a4ad6bcadce3546eb9e7a7da3db99b645f858d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#pragma once
#import <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;
};
}
|