Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kfilepreviewgenerator.cpp
Show First 20 Lines • Show All 1011 Lines • ▼ Show 20 Line(s) | 989 | if ((icon.width() <= 2048) && (icon.height() <= 2048) && icon.x11PictureHandle()) { | |||
---|---|---|---|---|---|
1012 | XRenderSetPictureTransform(dpy, icon.x11PictureHandle(), &xform); | 1012 | XRenderSetPictureTransform(dpy, icon.x11PictureHandle(), &xform); | ||
1013 | XRenderComposite(dpy, PictOpOver, icon.x11PictureHandle(), None, pixmap.x11PictureHandle(), | 1013 | XRenderComposite(dpy, PictOpOver, icon.x11PictureHandle(), None, pixmap.x11PictureHandle(), | ||
1014 | 0, 0, 0, 0, 0, 0, pixmap.width(), pixmap.height()); | 1014 | 0, 0, 0, 0, 0, 0, pixmap.width(), pixmap.height()); | ||
1015 | icon = pixmap; | 1015 | icon = pixmap; | ||
1016 | } else { | 1016 | } else { | ||
1017 | icon = icon.scaled(maxSize, Qt::KeepAspectRatio, Qt::FastTransformation); | 1017 | icon = icon.scaled(maxSize, Qt::KeepAspectRatio, Qt::FastTransformation); | ||
1018 | } | 1018 | } | ||
1019 | #else | 1019 | #else | ||
1020 | icon = icon.scaled(maxSize, Qt::KeepAspectRatio, Qt::FastTransformation); | 1020 | icon = icon.scaled(maxSize, Qt::KeepAspectRatio, Qt::SmoothTransformation); | ||
1021 | #endif | 1021 | #endif | ||
1022 | } | 1022 | } | ||
1023 | } | 1023 | } | ||
1024 | 1024 | | |||
1025 | void KFilePreviewGenerator::Private::createPreviews(const KFileItemList &items) | 1025 | void KFilePreviewGenerator::Private::createPreviews(const KFileItemList &items) | ||
1026 | { | 1026 | { | ||
1027 | if (items.count() == 0) { | 1027 | if (items.count() == 0) { | ||
1028 | return; | 1028 | return; | ||
▲ Show 20 Lines • Show All 261 Lines • Show Last 20 Lines |