Permalink
Browse files

some fixes for roster painting

  • Loading branch information...
1 parent 68857d7 commit 4df430410f9ee7c3a84733ea20c22cc8ed1996be @wadealer wadealer committed Apr 5, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/psicontactlistviewdelegate.cpp
View
3 src/psicontactlistviewdelegate.cpp
@@ -214,7 +214,7 @@ void PsiContactListViewDelegate::drawGroup(QPainter* painter, const QStyleOption
if(slimGroup_ && !(option.state & QStyle::State_Selected)) {
int h = r.y() + (r.height() / 2);
- int x = r.left() + fontMetrics_->width(text) + 1;
+ int x = r.left() + fontMetrics_->width(text) + 8;
painter->setPen(QPen(background,2));
painter->drawLine(x, h, r.right(), h);
}
@@ -301,6 +301,7 @@ void PsiContactListViewDelegate::optionChanged(const QString& option)
QPalette p = contactList()->palette();
p.setColor(QPalette::Base, ColorOpt::instance()->color(contactListBackgroundOptionPath));
const_cast<ContactListView*>(contactList())->setPalette(p);
+ contactList()->viewport()->update();
}
else if (option == showStatusMessagesOptionPath) {
showStatusMessages_ = PsiOptions::instance()->getOption(showStatusMessagesOptionPath).toBool();

0 comments on commit 4df4304

Please sign in to comment.