From c9bfc4db72b84292f541c795993abde98e22121f Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 6 Mar 2006 10:44:07 +0000 Subject: *** empty log message *** --- client/historywidget.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'client/historywidget.cc') diff --git a/client/historywidget.cc b/client/historywidget.cc index bdeb880..55fb178 100644 --- a/client/historywidget.cc +++ b/client/historywidget.cc @@ -30,6 +30,8 @@ #include "miav_config.h" +#include + HistoryWidget::HistoryWidget(QWidget *p) : QLabel(p) { parent = p; @@ -47,8 +49,10 @@ void HistoryWidget::set_image(QImage *i) image = new QImage(*i); - QImage resized = image->smoothScale(width(), height()); - setPixmap(resized); + QImage resized = image->scaled(width(), height(), Qt::KeepAspectRatio, Qt::SmoothTransformation); + QPixmap pixmap; + pixmap.fromImage(resized); + setPixmap(pixmap); } QImage * HistoryWidget::get_image() -- cgit v1.2.3