blob: 55775cf75f319c9068d99c4e0b6253d79a88745d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include <QStyledItemDelegate>
#include <QColor>
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;
};
}
|