Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QSvgQualityStyle Class Reference

#include <qsvgstyle_p.h>

+ Inheritance diagram for QSvgQualityStyle:
+ Collaboration diagram for QSvgQualityStyle:

Public Types

enum  ImageRendering : qint8 { ImageRenderingAuto = 0 , ImageRenderingOptimizeSpeed = 1 , ImageRenderingOptimizeQuality = 2 }
 
- Public Types inherited from QSvgStyleProperty
enum  Type {
  QUALITY , FILL , VIEWPORT_FILL , FONT ,
  STROKE , SOLID_COLOR , GRADIENT , PATTERN ,
  TRANSFORM , ANIMATE_TRANSFORM , ANIMATE_COLOR , OPACITY ,
  COMP_OP
}
 

Public Member Functions

 QSvgQualityStyle (int color)
 
void apply (QPainter *p, const QSvgNode *node, QSvgExtraStates &states) override
 
void revert (QPainter *p, QSvgExtraStates &states) override
 
Type type () const override
 
void setImageRendering (ImageRendering)
 
- Public Member Functions inherited from QSvgStyleProperty
virtual ~QSvgStyleProperty ()
 
bool isDefault () const
 
- Public Member Functions inherited from QSvgRefCounted
 QSvgRefCounted ()
 
virtual ~QSvgRefCounted ()
 
void ref ()
 
void deref ()
 

Detailed Description

Definition at line 157 of file qsvgstyle_p.h.

Member Enumeration Documentation

◆ ImageRendering

Enumerator
ImageRenderingAuto 
ImageRenderingOptimizeSpeed 
ImageRenderingOptimizeQuality 

Definition at line 160 of file qsvgstyle_p.h.

Constructor & Destructor Documentation

◆ QSvgQualityStyle()

QSvgQualityStyle::QSvgQualityStyle ( int color)

Definition at line 48 of file qsvgstyle.cpp.

References Q_UNUSED.

Member Function Documentation

◆ apply()

void QSvgQualityStyle::apply ( QPainter * p,
const QSvgNode * node,
QSvgExtraStates & states )
overridevirtual

Implements QSvgStyleProperty.

Definition at line 61 of file qsvgstyle.cpp.

References ImageRenderingAuto, ImageRenderingOptimizeQuality, and QPainter::SmoothPixmapTransform.

Referenced by QSvgStyle::apply().

+ Here is the caller graph for this function:

◆ revert()

void QSvgQualityStyle::revert ( QPainter * p,
QSvgExtraStates & states )
overridevirtual

Implements QSvgStyleProperty.

Definition at line 78 of file qsvgstyle.cpp.

References ImageRenderingAuto, ImageRenderingOptimizeQuality, and QPainter::SmoothPixmapTransform.

Referenced by QSvgStyle::revert().

+ Here is the caller graph for this function:

◆ setImageRendering()

void QSvgQualityStyle::setImageRendering ( ImageRendering hint)

Definition at line 56 of file qsvgstyle.cpp.

References hint().

+ Here is the call graph for this function:

◆ type()

QSvgStyleProperty::Type QSvgQualityStyle::type ( ) const
overridevirtual

Implements QSvgStyleProperty.

Definition at line 443 of file qsvgstyle.cpp.

References QSvgStyleProperty::QUALITY.


The documentation for this class was generated from the following files: