KIO::ThumbDevicePixelRatioDependentCreator

Search for usage in LXR

KIO::ThumbDevicePixelRatioDependentCreator Class Reference

#include <KIO/ThumbDevicePixelratioDependentCreator>

Inheritance diagram for KIO::ThumbDevicePixelRatioDependentCreator:

Public Member Functions

int devicePixelRatio () const
 
void setDevicePixelRatio (int dpr)
 
- Public Member Functions inherited from ThumbCreator
virtual ~ThumbCreator ()
 
virtual bool create (const QString &path, int width, int height, QImage &img)=0
 
virtual QWidgetcreateConfigurationWidget ()
 
virtual Flags flags () const
 
virtual void writeConfiguration (const QWidget *configurationWidget)
 

Additional Inherited Members

- Public Types inherited from ThumbCreator
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

DevicePixelRatioDependent=true;
Since
5.80

Definition at line 33 of file thumbdevicepixelratiodependentcreator.h.

Member Function Documentation

int KIO::ThumbDevicePixelRatioDependentCreator::devicePixelRatio ( ) const

The device Pixel Ratio used for thumbnail creation.

Definition at line 21 of file thumbdevicepixelratiodependentcreator.cpp.

void KIO::ThumbDevicePixelRatioDependentCreator::setDevicePixelRatio ( int  dpr)

Sets device Pixel Ratio used for thumbnail creation.

Definition at line 26 of file thumbdevicepixelratiodependentcreator.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Oct 21 2021 23:03:07 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.