KIO::ThumbDevicePixelRatioDependentCreator
#include <KIO/ThumbDevicePixelratioDependentCreator>

Public Member Functions | |
ThumbDevicePixelRatioDependentCreator () | |
int | devicePixelRatio () const |
void | setDevicePixelRatio (int dpr) |
![]() | |
virtual | ~ThumbCreator () |
virtual bool | create (const QString &path, int width, int height, QImage &img)=0 |
virtual QWidget * | createConfigurationWidget () |
virtual Flags | flags () const |
virtual void | writeConfiguration (const QWidget *configurationWidget) |
Additional Inherited Members | |
![]() | |
enum | Flags { None = 0, DrawFrame, BlendIcon = 2 } |
Detailed Description
- See also
- ThumbCreator
This is an extension of ThumbCreator that allows to pass to the thumbCreator a device pixel ratio to use for the output thumbnail.
The dimensions are then passed to the thumbnail creator without scaling with the dpr.
You also need to set the following key in the thumbcreator .desktop file
- Since
- 5.80
- Deprecated:
- since 5.101, use KIO::ThumbnailCreator instead
Definition at line 37 of file thumbdevicepixelratiodependentcreator.h.
Constructor & Destructor Documentation
◆ ThumbDevicePixelRatioDependentCreator()
KIO::ThumbDevicePixelRatioDependentCreator::ThumbDevicePixelRatioDependentCreator | ( | ) |
- Deprecated:
- since 5.101, use KIO::ThumbnailCreator instead
Definition at line 33 of file thumbdevicepixelratiodependentcreator.cpp.
Member Function Documentation
◆ devicePixelRatio()
int KIO::ThumbDevicePixelRatioDependentCreator::devicePixelRatio | ( | ) | const |
The device Pixel Ratio used for thumbnail creation.
Definition at line 23 of file thumbdevicepixelratiodependentcreator.cpp.
◆ setDevicePixelRatio()
void KIO::ThumbDevicePixelRatioDependentCreator::setDevicePixelRatio | ( | int | dpr | ) |
Sets device Pixel Ratio used for thumbnail creation.
Definition at line 28 of file thumbdevicepixelratiodependentcreator.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:51:45 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.