[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:10:31 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-contact-list.git;a=commitdiff;h=70b9a51

The following commit has been merged in the master branch:
commit 70b9a51463f1f90c06142fc203f9c3f22d392c5e
Author: Сковорода Никита Андреевич <chalkerx at gmail.com>
Date:   Wed Apr 11 16:51:23 2012 +0400

    Use SmoothTransformation while scaling avatars.
    
    Signed-off-by: Сковорода Никита Андреевич <chalkerx at gmail.com>
---
 contact-delegate-compact.cpp | 2 +-
 contact-delegate.cpp         | 2 +-
 dialogs/contact-info.cpp     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/contact-delegate-compact.cpp b/contact-delegate-compact.cpp
index 038d09f..91f3497 100644
--- a/contact-delegate-compact.cpp
+++ b/contact-delegate-compact.cpp
@@ -81,7 +81,7 @@ void ContactDelegateCompact::paintContact(QPainter * painter, const QStyleOption
         avatar = SmallIcon("im-user", KIconLoader::SizeMedium);
     }
 
-    style->drawItemPixmap(painter, iconRect, Qt::AlignCenter, avatar.scaled(iconRect.size(), Qt::KeepAspectRatio));
+    style->drawItemPixmap(painter, iconRect, Qt::AlignCenter, avatar.scaled(iconRect.size(), Qt::KeepAspectRatio, Qt::SmoothTransformation));
 
     KTp::Presence presence = index.data(AccountsModel::PresenceRole).value<KTp::Presence>();
 
diff --git a/contact-delegate.cpp b/contact-delegate.cpp
index bc9b41c..8c6aebe 100644
--- a/contact-delegate.cpp
+++ b/contact-delegate.cpp
@@ -90,7 +90,7 @@ void ContactDelegate::paintContact(QPainter * painter, const QStyleOptionViewIte
         painter->setClipPath(roundedPath);
     }
 
-    style->drawItemPixmap(painter, iconRect, Qt::AlignCenter, avatar.scaled(iconRect.size(), Qt::KeepAspectRatio));
+    style->drawItemPixmap(painter, iconRect, Qt::AlignCenter, avatar.scaled(iconRect.size(), Qt::KeepAspectRatio, Qt::SmoothTransformation));
 
     if (!noContactAvatar) {
         painter->restore();
diff --git a/dialogs/contact-info.cpp b/dialogs/contact-info.cpp
index 5fed52a..1cd346a 100644
--- a/dialogs/contact-info.cpp
+++ b/dialogs/contact-info.cpp
@@ -48,7 +48,7 @@ ContactInfo::ContactInfo(const Tp::ContactPtr &contact, QWidget *parent) :
         avatar = KIconLoader::global()->loadIcon("im-user", KIconLoader::Desktop, 128);
     }
 
-    ui->avatarLabel->setPixmap(avatar.scaled(ui->avatarLabel->maximumSize(), Qt::KeepAspectRatio));
+    ui->avatarLabel->setPixmap(avatar.scaled(ui->avatarLabel->maximumSize(), Qt::KeepAspectRatio, Qt::SmoothTransformation));
 
     ui->idLabel->setText(contact->id());
     ui->nameLabel->setText(contact->alias());

-- 
ktp-contact-list packaging



More information about the pkg-kde-commits mailing list