summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-08-26 21:22:54 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-08-26 21:22:54 (GMT)
commitfe14787ccaa95c4c85d5a8418a0ec812eddc959c (patch)
tree2eac0711d53a59ce903e71622dfe1f48e1d41657 /Swift
parent887f585b613120875fe84750a2097378cbcc7560 (diff)
downloadswift-fe14787ccaa95c4c85d5a8418a0ec812eddc959c.zip
swift-fe14787ccaa95c4c85d5a8418a0ec812eddc959c.tar.bz2
Make the roster text sizes relative to the defaults.
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/Roster/RosterDelegate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/Roster/RosterDelegate.cpp b/Swift/QtUI/Roster/RosterDelegate.cpp
index ae7a4b0..778345e 100644
--- a/Swift/QtUI/Roster/RosterDelegate.cpp
+++ b/Swift/QtUI/Roster/RosterDelegate.cpp
@@ -12,9 +12,9 @@
namespace Swift {
RosterDelegate::RosterDelegate() : nameFont_(QApplication::font()), statusFont_(QApplication::font()) {
- nameFont_.setPointSize(12);
+ int statusFontSizeDrop = nameFont_.pointSize() >= 10 ? 2 : 0;
statusFont_.setStyle(QFont::StyleItalic);
- statusFont_.setPointSize(10);
+ statusFont_.setPointSize(nameFont_.pointSize() - statusFontSizeDrop);
}
QSize RosterDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index ) const {