Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

QwtFltrDim Class Reference

This color filter can be used to darken colors. More...

#include <qwt_clrfltr.h>

Inherits QwtColorFilter.

Inheritance diagram for QwtFltrDim

Inheritance graph
[legend]
List of all members.

Public Methods

 QwtFltrDim (int dim = 100)
QColor operator() (const QColor &c) const
int dimFactor () const

Detailed Description

This color filter can be used to darken colors.


Constructor & Destructor Documentation

QwtFltrDim::QwtFltrDim ( int factor = 100 )
 

ctor.

QwtFltrDim uses QColor::dark() (See Qt Manual)

Parameters:
factor   Darkening factor. A factor greater than 100 produces a darker color, a factor smaller than 100 produces a brighter color.


Member Function Documentation

int QwtFltrDim::dimFactor ( ) const
 

Returns:
dim factor

QColor QwtFltrDim::operator() ( const QColor & c ) const [virtual]
 

Filter function.

Darkens or brightens a specified color. The behaviour of the filter is influenced by the constructor argument.

See also:
QwtFltrDim::QwtFltrDim()

Reimplemented from QwtColorFilter.


The documentation for this class was generated from the following files:
Generated at Thu Dec 14 00:27:15 2000 for Qwt User's Guide by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000