summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-08-26 06:58:33 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-08-26 06:58:33 (GMT)
commit887f585b613120875fe84750a2097378cbcc7560 (patch)
tree422eaf0280a6354cdcdac8b9d5e2bf54af7c7ad8 /Swift/QtUI/Roster/RosterDelegate.h
parent5465cbdbcc065276a34ee7110560e191364f73ee (diff)
downloadswift-887f585b613120875fe84750a2097378cbcc7560.zip
swift-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.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;