mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-23 22:51:12 -04:00
added temporary solution to not stretch the pixmap out of the window
This commit is contained in:
parent
737980bf12
commit
b1f45536a2
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue