summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-08-01 14:46:37 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-08-01 14:46:37 (GMT)
commitc3b4fc7dcf8475e4dcf7b42b496e332df4a4f7b1 (patch)
tree28aba4cc95d6ac7d916c6d2ca6980112ef915ea1 /Swift/QtUI/Roster/RosterDelegate.h
parentcd294437d80978a72a8b7ce9e563afee0a518300 (diff)
downloadswift-c3b4fc7dcf8475e4dcf7b42b496e332df4a4f7b1.zip
swift-c3b4fc7dcf8475e4dcf7b42b496e332df4a4f7b1.tar.bz2
Resize avatars to 32pix in Roster, change alignments to be relative, do item hiding.
Diffstat (limited to 'Swift/QtUI/Roster/RosterDelegate.h')
-rw-r--r--Swift/QtUI/Roster/RosterDelegate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/Roster/RosterDelegate.h b/Swift/QtUI/Roster/RosterDelegate.h
index a48b30f..4a4ad6b 100644
--- a/Swift/QtUI/Roster/RosterDelegate.h
+++ b/Swift/QtUI/Roster/RosterDelegate.h
@@ -7,5 +7,8 @@ namespace Swift {
public:
QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const;
+ private:
+ static const int avatarSize_ = 32;
+ static const int margin_ = 4;
};
} \ No newline at end of file