QMotifStyle Class Reference
Motif Look and Feel.
More...
#include <qmotifstyle.h>
Inherits QCommonStyle.
Inherited by QCDEStyle, QInterlaceStyle, QMotifPlusStyle, and QSGIStyle.
List of all member functions.
Public Members
- QMotifStyle ( bool useHighlightCols = FALSE )
- virtual ~QMotifStyle ()
- void setUseHighlightColors ( bool arg )
- bool useHighlightColors () const
- virtual void drawButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 )
- virtual void drawExclusiveIndicatorMask ( QPainter * p, int x, int y, int w, int h, bool on )
Detailed Description
Motif Look and Feel
This class implements the Motif look and feel. It almost completely
resembles the original Motif look as defined by the Open Group, but
also contains minor improvements. The Motif style is Qt's default
GUI style on UNIX platforms.
See also
Member Function Documentation
QMotifStyle::QMotifStyle ( bool useHighlightCols = FALSE )
Constructs a QMotifStyle.
If useHighlightCols is FALSE (default value), then 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.
QMotifStyle::~QMotifStyle () [virtual]
Destructs the style.
void QMotifStyle::drawButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 ) [virtual]
Draws a press-sensitive shape.
Reimplemented from QStyle.
Reimplemented in QSGIStyle.
void QMotifStyle::drawExclusiveIndicatorMask ( QPainter * p, int x, int y, int w, int h, bool on ) [virtual]
Draws the mask of a mark indicating the state of an exclusive choice
Reimplemented from QStyle.
Reimplemented in QSGIStyle.
void QMotifStyle::setUseHighlightColors ( bool arg )
If the argument is FALSE, then 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.
The effect will show up the next time a application palette is set
via QApplication::setPalette(). The current color palette of the
application remains unchanged.
See also QStyle::polish(, QPalette&, and ).
bool QMotifStyle::useHighlightColors () const
Returns whether the style treats the highlight colors of the palette
Motif-like, which is a simple inversion between the base and the
text color. The default is FALSE.
This file is part of the Qtopia platform,
copyright © 1995-2005
Trolltech, all rights reserved.
| Copyright © 2005 Trolltech
| Trademarks
| Qtopia version 2.2.0
|