diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-08-26 22:07:59 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-08-26 22:07:59 (GMT) |
commit | 0087712586d5651e1fe8fe9e76b2e8cff3b1f602 (patch) | |
tree | eab2781125fd2dd749feba10dba846960fd4ec76 /Swift/QtUI/Roster/RosterDelegate.h | |
parent | fe14787ccaa95c4c85d5a8418a0ec812eddc959c (diff) | |
download | swift-0087712586d5651e1fe8fe9e76b2e8cff3b1f602.zip swift-0087712586d5651e1fe8fe9e76b2e8cff3b1f602.tar.bz2 |
Round the group corners and stop group highlighting in the roster
Diffstat (limited to 'Swift/QtUI/Roster/RosterDelegate.h')
-rw-r--r-- | Swift/QtUI/Roster/RosterDelegate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/Roster/RosterDelegate.h b/Swift/QtUI/Roster/RosterDelegate.h index dcbb665..1d1f0ce 100644 --- a/Swift/QtUI/Roster/RosterDelegate.h +++ b/Swift/QtUI/Roster/RosterDelegate.h @@ -5,12 +5,15 @@ #include <QFont> namespace Swift { + class QtTreeWidgetItem; 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: + void paintGroup(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; + void paintContact(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; QFont nameFont_; QFont statusFont_; static const int avatarSize_ = 28; |