[SCM] ktp-contact-list packaging branch, master, updated. debian/15.12.1-2-1070-g6c56f91
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:12:56 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-contact-list.git;a=commitdiff;h=756854d
The following commit has been merged in the master branch:
commit 756854d86e1ce888a5f451580169e420ea666869
Author: Martin Klapetek <martin.klapetek at gmail.com>
Date: Wed Mar 13 18:36:08 2013 +0100
Make the avatar border in full delegate mode thinner
REVIEW: 109430
---
contact-delegate.cpp | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/contact-delegate.cpp b/contact-delegate.cpp
index 7110587..b5366b0 100644
--- a/contact-delegate.cpp
+++ b/contact-delegate.cpp
@@ -82,8 +82,20 @@ void ContactDelegate::paintContact(QPainter *painter, const QStyleOptionViewItem
style->drawItemPixmap(painter, iconRect, Qt::AlignCenter, avatar.scaled(iconRect.size(), Qt::KeepAspectRatio, Qt::SmoothTransformation));
painter->restore();
+
+ QPen thinLinePen;
+ thinLinePen.setWidth(0);
+ thinLinePen.setColor(option.palette.color(QPalette::Disabled, QPalette::Text));
+
+ painter->save();
+
+ painter->setPen(thinLinePen);
+ painter->setRenderHint(QPainter::Antialiasing, false);
painter->drawPath(roundedPath);
+ //clear the font and AA setting
+ painter->restore();
+
// This value is used to set the correct width for the username and the presence message.
int rightIconsWidth = m_presenceIconSize + m_spacing;
--
ktp-contact-list packaging
More information about the pkg-kde-commits
mailing list