KIO::ThumbDevicePixelRatioDependentCreator

Search for usage in LXR

KIO::ThumbDevicePixelRatioDependentCreator Class Reference

#include <KIO/ThumbDevicePixelratioDependentCreator>

Inheritance diagram for KIO::ThumbDevicePixelRatioDependentCreator:

Public Member Functions

 ThumbDevicePixelRatioDependentCreator ()
 
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
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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Dec 1 2022 03:55:22 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.