RAM usage reduced (tested 107 pics 220MB to 68MB)

This commit is contained in:
Rafael 2016-12-09 23:13:21 +01:00
parent 5af3dabcb8
commit 3be2e49d5c
4 changed files with 128 additions and 22 deletions

View file

@ -105,6 +105,5 @@ void PictureWidget::updateWindowSize(int screenID)
this->resize(desktopRect.width(), desktopRect.height());
this->showFullScreen();
pictureLabel->setPixmap(QPixmap::fromImage(image.scaled(desktopRect.width(), desktopRect.height(), Qt::KeepAspectRatio, Qt::SmoothTransformation)));
}
}