QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | List of all members
QgsPreviewEffect Class Reference

A graphics effect which can be applied to a widget to simulate various printing and color blindness modes. More...

#include <qgsprevieweffect.h>

Public Types

enum  PreviewMode { PreviewGrayscale, PreviewMono, PreviewProtanope, PreviewDeuteranope }

Public Member Functions

 QgsPreviewEffect (QObject *parent)
 ~QgsPreviewEffect ()
void setMode (PreviewMode mode)
 Sets the mode for the preview effect, which controls how the effect modifies a widgets appearance.
PreviewMode mode () const
 Returns the mode used for the preview effect.

Protected Member Functions

virtual void draw (QPainter *painter)

Detailed Description

A graphics effect which can be applied to a widget to simulate various printing and color blindness modes.

Member Enumeration Documentation

Enumerator:
PreviewGrayscale 
PreviewMono 
PreviewProtanope 
PreviewDeuteranope 

Constructor & Destructor Documentation

QgsPreviewEffect::QgsPreviewEffect ( QObject *  parent)
QgsPreviewEffect::~QgsPreviewEffect ( )

Member Function Documentation

void QgsPreviewEffect::draw ( QPainter *  painter)
protectedvirtual
PreviewMode QgsPreviewEffect::mode ( ) const
inline

Returns the mode used for the preview effect.

Returns
PreviewMode currently used by the effect
Note
added in 2.3
See Also
setMode
void QgsPreviewEffect::setMode ( QgsPreviewEffect::PreviewMode  mode)

Sets the mode for the preview effect, which controls how the effect modifies a widgets appearance.

Parameters
modePreviewMode to use to draw the widget
Note
added in 2.3
See Also
mode

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