diff options
Diffstat (limited to 'client/historywidget.cc')
-rw-r--r-- | client/historywidget.cc | 8 |
1 files changed, 6 insertions, 2 deletions
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 <QPixmap> + 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() |