diff options
Diffstat (limited to 'Swift/QtUI/Roster/RosterDelegate.h')
-rw-r--r-- | Swift/QtUI/Roster/RosterDelegate.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Swift/QtUI/Roster/RosterDelegate.h b/Swift/QtUI/Roster/RosterDelegate.h index d17b7a1..712af81 100644 --- a/Swift/QtUI/Roster/RosterDelegate.h +++ b/Swift/QtUI/Roster/RosterDelegate.h @@ -12,15 +12,19 @@ namespace Swift { QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const; void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const; private: + QSize groupSizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const; + QSize contactSizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const; 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_ = 20; - static const int presenceIconHeight_ = 16; - static const int presenceIconWidth_ = 16; - static const int groupCornerRadius_ = 4; - static const int horizontalMargin_ = 4; - static const int verticalMargin_ = 1; + QFont groupFont_; + static const int avatarSize_; + static const int presenceIconHeight_; + static const int presenceIconWidth_; + static const int groupCornerRadius_; + static const int horizontalMargin_; + static const int verticalMargin_ ; + static const int farLeftMargin_; }; } |