1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

SiteInfo: Fix showing images with HighDPI

This commit is contained in:
David Rosca 2016-12-30 17:28:00 +01:00
parent c5e5a679bd
commit f8bd795462
2 changed files with 4 additions and 2 deletions

View File

@ -217,8 +217,10 @@ void SiteInfo::showLoadingText()
ui->mediaPreview->setScene(scene);
}
void SiteInfo::showPixmap(const QPixmap &pixmap)
void SiteInfo::showPixmap(QPixmap pixmap)
{
pixmap.setDevicePixelRatio(devicePixelRatioF());
delete ui->mediaPreview->scene();
QGraphicsScene* scene = new QGraphicsScene(ui->mediaPreview);

View File

@ -52,7 +52,7 @@ private slots:
private:
void showLoadingText();
void showPixmap(const QPixmap &pixmap);
void showPixmap(QPixmap pixmap);
Ui::SiteInfo* ui;
CertificateInfoWidget* m_certWidget;