mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 07:59:35 -05: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