Changeset View
Changeset View
Standalone View
Standalone View
lib/thumbnailprovider/thumbnailgenerator.cpp
Context not available. | |||||
34 | #endif | 34 | #endif | ||
---|---|---|---|---|---|
35 | 35 | | |||
36 | // Qt | 36 | // Qt | ||
37 | #include <QApplication> | ||||
37 | #include <QImageReader> | 38 | #include <QImageReader> | ||
38 | #include <QMatrix> | 39 | #include <QMatrix> | ||
39 | #include <QBuffer> | 40 | #include <QBuffer> | ||
Context not available. | |||||
270 | { | 271 | { | ||
271 | QMutexLocker lock(&mMutex); | 272 | QMutexLocker lock(&mMutex); | ||
272 | pixPath = mPixPath; | 273 | pixPath = mPixPath; | ||
273 | pixelSize = ThumbnailGroup::pixelSize(mThumbnailGroup); | 274 | qreal dpr = qApp->devicePixelRatio(); | ||
275 | pixelSize = ThumbnailGroup::pixelSize(mThumbnailGroup) * dpr; | ||||
274 | } | 276 | } | ||
275 | 277 | | |||
276 | Q_ASSERT(!pixPath.isNull()); | 278 | Q_ASSERT(!pixPath.isNull()); | ||
Context not available. |