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:
parent
c5e5a679bd
commit
f8bd795462
|
@ -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);
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ private slots:
|
|||
|
||||
private:
|
||||
void showLoadingText();
|
||||
void showPixmap(const QPixmap &pixmap);
|
||||
void showPixmap(QPixmap pixmap);
|
||||
|
||||
Ui::SiteInfo* ui;
|
||||
CertificateInfoWidget* m_certWidget;
|
||||
|
|
Loading…
Reference in New Issue
Block a user