mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-26 13:02:20 +08:00
parent
397d941f2f
commit
c5d3dadbbb
@ -1,6 +1,8 @@
|
|||||||
#include "big_image.h"
|
#include "big_image.h"
|
||||||
|
#include "qapplication.h"
|
||||||
|
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
|
#include <QScreen>
|
||||||
#include <QtConcurrent>
|
#include <QtConcurrent>
|
||||||
|
|
||||||
big_image::big_image(DBlurEffectWidget *parent) : DBlurEffectWidget(parent),
|
big_image::big_image(DBlurEffectWidget *parent) : DBlurEffectWidget(parent),
|
||||||
@ -25,6 +27,8 @@ big_image::big_image(DBlurEffectWidget *parent) : DBlurEffectWidget(parent),
|
|||||||
|
|
||||||
void big_image::setimage(QPixmap image)
|
void big_image::setimage(QPixmap image)
|
||||||
{
|
{
|
||||||
|
QScreen *screen = QApplication::primaryScreen();
|
||||||
|
image.setDevicePixelRatio(screen->devicePixelRatio());
|
||||||
m_image->setPixmap(image);
|
m_image->setPixmap(image);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user