diff options
author | deva <deva> | 2006-03-06 10:44:07 +0000 |
---|---|---|
committer | deva <deva> | 2006-03-06 10:44:07 +0000 |
commit | c9bfc4db72b84292f541c795993abde98e22121f (patch) | |
tree | 687411dce72a70dc0f4c337c8e496607308f8ab4 /client/historywidget.cc | |
parent | c629a137b5f91097004f1a267d1433393e5cc512 (diff) |
*** empty log message ***
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() |