summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/Roster/RosterDelegate.h')
-rw-r--r--Swift/QtUI/Roster/RosterDelegate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/QtUI/Roster/RosterDelegate.h b/Swift/QtUI/Roster/RosterDelegate.h
index 55775cf..dcbb665 100644
--- a/Swift/QtUI/Roster/RosterDelegate.h
+++ b/Swift/QtUI/Roster/RosterDelegate.h
@@ -2,13 +2,17 @@
#include <QStyledItemDelegate>
#include <QColor>
+#include <QFont>
namespace Swift {
class RosterDelegate : public QStyledItemDelegate {
public:
+ RosterDelegate();
QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
private:
+ QFont nameFont_;
+ QFont statusFont_;
static const int avatarSize_ = 28;
static const int presenceIconHeight_ = 16;
static const int presenceIconWidth_ = 16;