Changeset View
Changeset View
Standalone View
Standalone View
applets/clipboard/contents/ui/ImageItemDelegate.qml
Context not available. | |||||
24 | 24 | | |||
---|---|---|---|---|---|
25 | KQuickControlsAddons.QPixmapItem { | 25 | KQuickControlsAddons.QPixmapItem { | ||
26 | id: previewPixmap | 26 | id: previewPixmap | ||
27 | height: Math.round(width * (nativeHeight/nativeWidth) + units.smallSpacing * 2) | 27 | width: Math.min(nativeWidth, width) | ||
28 | height: Math.min(nativeHeight, Math.round(width * (nativeHeight/nativeWidth) + units.smallSpacing * 2)) | ||||
28 | pixmap: DecorationRole | 29 | pixmap: DecorationRole | ||
29 | fillMode: KQuickControlsAddons.QPixmapItem.PreserveAspectFit | 30 | fillMode: KQuickControlsAddons.QPixmapItem.PreserveAspectFit | ||
30 | } | 31 | } | ||
Context not available. |