From 7617e03e637cfa153d3fc5cfcb9edc709f4323e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sun, 24 Oct 2010 12:24:49 +0200
Subject: Use smooth image interpolation in the chat dialog.

Resolves: #617
Release-Notes: The quality of the avatars has improved.

diff --git a/Swift/QtUI/QtWebView.cpp b/Swift/QtUI/QtWebView.cpp
index df8479d..553ac56 100644
--- a/Swift/QtUI/QtWebView.cpp
+++ b/Swift/QtUI/QtWebView.cpp
@@ -13,6 +13,7 @@
 
 namespace Swift {
 QtWebView::QtWebView(QWidget* parent) : QWebView(parent) {
+	setRenderHint(QPainter::SmoothPixmapTransform);
 }
 
 void QtWebView::keyPressEvent(QKeyEvent* event) {
diff --git a/Swift/resources/themes/Default/main.css b/Swift/resources/themes/Default/main.css
index 9e263bf..4982ba6 100755
--- a/Swift/resources/themes/Default/main.css
+++ b/Swift/resources/themes/Default/main.css
@@ -85,7 +85,8 @@ body {
 }
 
 .chatItem {
-	opacity:0.96;
+	/*Removing opacity, because this causes Qt's WebKit to draw low-quality images */
+	/*opacity:0.96;*/
 }
 
 .tableBubble {
-- 
cgit v0.10.2-6-g49f6