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
- 1 writable property inherited from QObject
Public Functions
- QMotifPlusStyle ( bool hoveringHighlight = true )
- virtual ~QMotifPlusStyle ()
- void 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
- void drawControl ( ControlElement element, QPainter * p, const QWidget * widget, const QRect & r, const QPalette & pal, SFlags flags = Style_Default, const Q3StyleOption & opt = Q3StyleOption::Default ) const
- void drawPrimitive ( PrimitiveElement pe, QPainter * p, const QRect & r, const QPalette & pal, SFlags flags = Style_Default, const Q3StyleOption & opt = Q3StyleOption::Default ) const
- QRect querySubControlMetrics ( ComplexControl control, const QWidget * widget, SubControl subcontrol, const Q3StyleOption & opt = Q3StyleOption::Default ) const
- QRect subRect ( SubRect r, const QWidget * widget ) const
Public Slots
- 1 public slot inherited from QObject
Signals
Static Public Members
- 6 static public members inherited from QStyle
- 4 static public members inherited from QObject
Protected Functions
- 9 protected functions inherited from QObject
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.