Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

QPlatinumStyle Class Reference

The QPlatinumStyle class provides Mac/Platinum look and feel. More...

#include <QPlatinumStyle>

Inherits QWindowsStyle.

List of all members.

Writable Properties

Public Functions

Public Slots

Signals

Static Public Members

Protected Functions


Detailed Description

The QPlatinumStyle class provides Mac/Platinum look and feel.

This class implements the Platinum look and feel. It's an experimental class that tries to resemble a Macinosh-like GUI style with the QStyle system. The emulation is currently far from perfect.

Most of the functions are documented in the base classes QWindowsStyle, QCommonStyle, and QStyle, but the QPlatinumStyle overloads of drawComplexControl(), drawControl(), drawPrimitive(), querySubControlMetrics(), and subRect(), are documented here.

See also QMacStyle.


Member Function Documentation

QPlatinumStyle::QPlatinumStyle ()

Constructs a QPlatinumStyle

QPlatinumStyle::~QPlatinumStyle ()   [virtual]

Destroys the style.

void QPlatinumStyle::drawComplexControl ( ComplexControl control, QPainter * p, const QWidget * widget, const QRect & r, const QPalette & pal, SFlags how = Style_Default, SCFlags sub = SC_All, SCFlags subActive = SC_None, const Q3StyleOption & opt = Q3StyleOption::Default ) const

Draws the complex control on the painter p. The widget may be given and may be useful for drawing the element. The confining rectangle is r and the palette to use is pal. The style flags are specified by how, sub, and subActive, and the style options by opt.

void QPlatinumStyle::drawControl ( ControlElement element, QPainter * p, const QWidget * widget, const QRect & r, const QPalette & pal, SFlags how = Style_Default, const Q3StyleOption & opt = Q3StyleOption::Default ) const

Draws the control element on painter p. The widget may be given and may be useful for drawing the element. The confining rectangle is r and the palette to use is pal. The drawing respects the style flags, how, and the style options, opt.

void QPlatinumStyle::drawPrimitive ( PrimitiveElement pe, QPainter * p, const QRect & r, const QPalette & pal, SFlags flags = Style_Default, const Q3StyleOption & opt = Q3StyleOption::Default ) const

Draws the primitive element pe on painter p. The confining rectangle is r and the palette to use is pal. The drawing respects the style flags and the style options specified by opt.

void QPlatinumStyle::drawRiffles ( QPainter * p, int x, int y, int w, int h, const QPalette & pal, bool horizontal ) const   [protected]

Draws the nifty Macintosh decoration used on sliders using painter p and colorgroup pal. x, y, w, h and horizontal specify the geometry and orientation of the riffles.

QColor QPlatinumStyle::mixedColor ( const QColor & c1, const QColor & c2 ) const   [protected]

Mixes two colors c1 and c2 to a new color.

QRect QPlatinumStyle::querySubControlMetrics ( ComplexControl control, const QWidget * widget, SubControl sc, const Q3StyleOption & opt = Q3StyleOption::Default ) const

Returns the rectangle required by the sub-control sc in the complex control with the style options specified by opt. The widget may contain a widget that is useful for drawing the sub-control.

QRect QPlatinumStyle::subRect ( SubRect r, const QWidget * widget ) const

Returns the rectangle for the given sub-rectangle r. The widget is optional and may contain a widget that is useful for drawing the sub-rectangle.


Copyright © 2004 Trolltech. Trademarks
Qt 4.0.0-tp1