QSGIStyle Class Reference
The QSGIStyle class provides SGI/Irix look and feel. More...
#include <QSGIStyle>
Inherits QMotifStyle.
List of all members.
Writable Properties
- 1 writable property inherited from QObject
Public Functions
- QSGIStyle ( bool useHighlightCols = false )
- virtual ~QSGIStyle ()
- void drawComplexControl ( ComplexControl control, QPainter * p, const QWidget * widget, const QRect & r, const QPalette & pal, SFlags flags = Style_Default, SCFlags sub = SC_All, SCFlags subActive = 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 sub, const Q3StyleOption & opt = Q3StyleOption::Default ) const
- QSize sizeFromContents ( ContentsType contents, const QWidget * widget, const QSize & contentsSize, 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 QSGIStyle class provides SGI/Irix look and feel.
This class implements the SGI look and feel. It resembles the SGI/Irix Motif GUI style as closely as QStyle allows.
Most of the functions are documented in the base classes QMotifStyle, QCommonStyle, and QStyle, but the QSGIStyle overloads of drawComplexControl(), drawControl(), drawPrimitive(), querySubControlMetrics(), setUseHighlightColors(), sizeFromContents(), subRect(), and useHighlightColors(), are documented here.
Member Function Documentation
QSGIStyle::QSGIStyle ( bool useHighlightCols = false )
Constructs a QSGIStyle.
If useHighlightCols is false (default value), the style will polish the application's color palette to emulate the Motif way of highlighting, which is a simple inversion between the base and the text color.
See also QMotifStyle::useHighlightColors().
QSGIStyle::~QSGIStyle () [virtual]
Destroys the style.
void QSGIStyle::drawComplexControl ( ComplexControl control, QPainter * p, const QWidget * widget, const QRect & r, const QPalette & pal, SFlags flags = 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 flags, sub, and subActive, and the style options by opt.
void QSGIStyle::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 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 and uses the style options specified by opt.
void QSGIStyle::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 be used is pal. The drawing respects the style flags and the style options specified by opt.
QRect QSGIStyle::querySubControlMetrics ( ComplexControl control, const QWidget * widget, SubControl sub, const Q3StyleOption & opt = Q3StyleOption::Default ) const
Returns the rectangle needed by the sub-control sub in the complex control using the style options specified by opt. The widget may contain a widget that is useful for drawing the sub-control.
QSize QSGIStyle::sizeFromContents ( ContentsType contents, const QWidget * widget, const QSize & contentsSize, const Q3StyleOption & opt = Q3StyleOption::Default ) const
Returns the size needed by the contents with the specified contentsSize and style options, opt. The widget is optional and may contain a widget that is useful for calculating the size.
QRect QSGIStyle::subRect ( SubRect r, const QWidget * widget ) const
Returns the rectangle needed by the given sub-rectangle r. The widget is optional and may contain a widget that is useful for drawing the sub-rectangle.