Changeset View
Changeset View
Standalone View
Standalone View
lib/thumbnailprovider/thumbnailprovider.cpp
Context not available. | |||||
399 | if (largeImage.isNull()) { | 399 | if (largeImage.isNull()) { | ||
---|---|---|---|---|---|
400 | return image; | 400 | return image; | ||
401 | } | 401 | } | ||
402 | int size = ThumbnailGroup::pixelSize(ThumbnailGroup::Normal); | 402 | qreal dpr = qApp->devicePixelRatio(); | ||
403 | int size = ThumbnailGroup::pixelSize(ThumbnailGroup::Normal) * dpr; | ||||
403 | image = largeImage.scaled(size, size, Qt::KeepAspectRatio, Qt::SmoothTransformation); | 404 | image = largeImage.scaled(size, size, Qt::KeepAspectRatio, Qt::SmoothTransformation); | ||
404 | Q_FOREACH(const QString& key, largeImage.textKeys()) { | 405 | Q_FOREACH(const QString& key, largeImage.textKeys()) { | ||
405 | QString text = largeImage.text(key); | 406 | QString text = largeImage.text(key); | ||
Context not available. | |||||
494 | mState = STATE_PREVIEWJOB; | 495 | mState = STATE_PREVIEWJOB; | ||
495 | KFileItemList list; | 496 | KFileItemList list; | ||
496 | list.append(mCurrentItem); | 497 | list.append(mCurrentItem); | ||
497 | const int pixelSize = ThumbnailGroup::pixelSize(mThumbnailGroup); | 498 | qreal dpr = qApp->devicePixelRatio(); | ||
499 | const int pixelSize = ThumbnailGroup::pixelSize(mThumbnailGroup) * dpr; | ||||
498 | if (mPreviewPlugins.isEmpty()) { | 500 | if (mPreviewPlugins.isEmpty()) { | ||
499 | mPreviewPlugins = KIO::PreviewJob::availablePlugins(); | 501 | mPreviewPlugins = KIO::PreviewJob::availablePlugins(); | ||
500 | } | 502 | } | ||
Context not available. |