mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added temporary solution to not stretch the pixmap out of the window
This commit is contained in:
parent
737980bf12
commit
b1f45536a2
@ -48,7 +48,9 @@ PhotoView::~PhotoView()
|
||||
|
||||
void PhotoView::setPixmap(const QPixmap& pixmap)
|
||||
{
|
||||
ui->photoLabel->setPixmap(pixmap);
|
||||
QPixmap sqpixmap = pixmap.scaled(600,480, Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
||||
|
||||
ui->photoLabel->setPixmap(sqpixmap);
|
||||
}
|
||||
|
||||
void PhotoView::setTitle(const QString& text)
|
||||
|
Loading…
Reference in New Issue
Block a user