summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkarsh Simha <akarsh@kde.org>2016-08-16 06:39:25 (GMT)
committerAkarsh Simha <akarsh@kde.org>2016-08-16 06:39:25 (GMT)
commit0b725a0ec6fee51a37cce9d7e2e08aef76103605 (patch)
treedf468e97617b98507416cc11bc9e7903fae605b6
parenta959e81105e346cc427604af45bb71deb874a455 (diff)
Use smooth scaling for DSS / SDSS images in the Image Viewer
-rw-r--r--kstars/auxiliary/imageviewer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kstars/auxiliary/imageviewer.cpp b/kstars/auxiliary/imageviewer.cpp
index 142d5b0..e2cb27a 100644
--- a/kstars/auxiliary/imageviewer.cpp
+++ b/kstars/auxiliary/imageviewer.cpp
@@ -58,7 +58,7 @@ void ImageLabel::setImage( const QImage &img )
void ImageLabel::invertPixels()
{
m_Image.invertPixels();
- pix = QPixmap::fromImage(m_Image.scaled(width(), height(), Qt::KeepAspectRatio));
+ pix = QPixmap::fromImage(m_Image.scaled(width(), height(), Qt::KeepAspectRatio ));
}
void ImageLabel::paintEvent (QPaintEvent*)
@@ -80,7 +80,7 @@ void ImageLabel::resizeEvent(QResizeEvent *event)
if (event->size().width() == w && event->size().height() == h)
return;
- pix = QPixmap::fromImage(m_Image.scaled(event->size(), Qt::KeepAspectRatio));
+ pix = QPixmap::fromImage(m_Image.scaled(event->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation));
}
ImageViewer::ImageViewer (const QString &caption, QWidget *parent):