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

QMotifPlusStyle Class Reference

The QMotifPlusStyle class provides a more sophisticated Motif-ish look and feel. More...

#include <QMotifPlusStyle>

Inherits QMotifStyle.

List of all members.

Writable Properties

Public Functions

Public Slots

Signals

Static Public Members

Protected Functions


Detailed Description

The QMotifPlusStyle class provides a more sophisticated Motif-ish look and feel.

This class implements a Motif-ish look and feel with the more sophisticated bevelling as used by the GIMP Toolkit (GTK+) for Unix/X11.

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


Member Function Documentation

QMotifPlusStyle::QMotifPlusStyle ( bool hoveringHighlight = true )

Constructs a QMotifPlusStyle

If hoveringHighlight is true (the default), then the style will not highlight push buttons, checkboxes, radiobuttons, comboboxes, scrollbars or sliders.

QMotifPlusStyle::~QMotifPlusStyle ()   [virtual]

Destroys the style.

void QMotifPlusStyle::drawComplexControl ( ComplexControl control, QPainter * p, const QWidget * widget, const QRect & r, const QPalette & pal, SFlags flags = Style_Default, SCFlags controls = SC_All, SCFlags active = 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 given by r. The palette to use is pal. The flags are given by flags, controls and active, and the style options by opt.

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

Draws the given control element on painter p. The parent widget is widget. The confining rectangle is r and the palette to use is pal. The drawing respects the given style flags and the style options opt.

void QMotifPlusStyle::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 given by opt.

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

This function returns the rectangle that would be occupied by a complex control of the type specified by control with the parent widget widget, sub control subcontrol, and with the style options opt.

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

Returns the rectangle for the 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