QGIS API Documentation
2.6.0-Brighton
|
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) |
A graphics effect which can be applied to a widget to simulate various printing and color blindness modes.
QgsPreviewEffect::QgsPreviewEffect | ( | QObject * | parent | ) |
QgsPreviewEffect::~QgsPreviewEffect | ( | ) |
|
protectedvirtual |
|
inline |
Returns the mode used for the preview effect.
void QgsPreviewEffect::setMode | ( | QgsPreviewEffect::PreviewMode | mode | ) |
Sets the mode for the preview effect, which controls how the effect modifies a widgets appearance.
mode | PreviewMode to use to draw the widget |