diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-08-26 06:58:33 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-08-26 06:58:33 (GMT) |
commit | 887f585b613120875fe84750a2097378cbcc7560 (patch) | |
tree | 422eaf0280a6354cdcdac8b9d5e2bf54af7c7ad8 /Swift/QtUI/Roster/RosterDelegate.h | |
parent | 5465cbdbcc065276a34ee7110560e191364f73ee (diff) | |
download | swift-contrib-887f585b613120875fe84750a2097378cbcc7560.zip swift-contrib-887f585b613120875fe84750a2097378cbcc7560.tar.bz2 |
Roster rendering now takes account of the text height as well as the avatar height.
Diffstat (limited to 'Swift/QtUI/Roster/RosterDelegate.h')
-rw-r--r-- | Swift/QtUI/Roster/RosterDelegate.h | 4 |
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; |