blob: 5986ab2034089b75282d5b590a0961d79e2f6b55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#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 presenceIconHeight_ = 16;
static const int presenceIconWidth_ = 16;
static const int margin_ = 4;
};
}
|