diff options
| -rw-r--r-- | Swift/QtUI/Roster/RosterDelegate.cpp | 4 | 
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 { | 
 Swift
 Swift