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);
|
ui->mediaPreview->setScene(scene);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SiteInfo::showPixmap(const QPixmap &pixmap)
|
void SiteInfo::showPixmap(QPixmap pixmap)
|
||||||
{
|
{
|
||||||
|
pixmap.setDevicePixelRatio(devicePixelRatioF());
|
||||||
|
|
||||||
delete ui->mediaPreview->scene();
|
delete ui->mediaPreview->scene();
|
||||||
QGraphicsScene* scene = new QGraphicsScene(ui->mediaPreview);
|
QGraphicsScene* scene = new QGraphicsScene(ui->mediaPreview);
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ private slots:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void showLoadingText();
|
void showLoadingText();
|
||||||
void showPixmap(const QPixmap &pixmap);
|
void showPixmap(QPixmap pixmap);
|
||||||
|
|
||||||
Ui::SiteInfo* ui;
|
Ui::SiteInfo* ui;
|
||||||
CertificateInfoWidget* m_certWidget;
|
CertificateInfoWidget* m_certWidget;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user