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

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


Definition at line 33 of file thumbdevicepixelratiodependentcreator.h.

Member Function Documentation

◆ devicePixelRatio()

int KIO::ThumbDevicePixelRatioDependentCreator::devicePixelRatio ( ) const

The device Pixel Ratio used for thumbnail creation.

Definition at line 21 of file thumbdevicepixelratiodependentcreator.cpp.

◆ setDevicePixelRatio()

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-2022 The KDE developers.
Generated on Thu Aug 11 2022 03:56:22 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.