The QMotifStyle class provides Motif look and feel. More...
#include <QMotifStyle>
Inherits: QCommonStyle.
Inherited by: QCDEStyle.
QMotifStyle ( bool useHighlightCols = false ) | |
virtual | ~QMotifStyle () |
void | setUseHighlightColors ( bool arg ) |
bool | useHighlightColors () const |
virtual void | drawComplexControl ( ComplexControl cc, const QStyleOptionComplex * opt, QPainter * p, const QWidget * widget = 0 ) const |
virtual void | drawControl ( ControlElement element, const QStyleOption * opt, QPainter * p, const QWidget * widget = 0 ) const |
virtual void | drawPrimitive ( PrimitiveElement pe, const QStyleOption * opt, QPainter * p, const QWidget * w = 0 ) const |
virtual bool | event ( QEvent * e ) |
virtual int | pixelMetric ( PixelMetric pm, const QStyleOption * opt = 0, const QWidget * widget = 0 ) const |
virtual void | polish ( QPalette & pal ) |
virtual QSize | sizeFromContents ( ContentsType ct, const QStyleOption * opt, const QSize & contentsSize, const QWidget * widget = 0 ) const |
virtual QPalette | standardPalette () const |
virtual QPixmap | standardPixmap ( StandardPixmap standardPixmap, const QStyleOption * opt, const QWidget * widget = 0 ) const |
virtual int | styleHint ( StyleHint hint, const QStyleOption * opt = 0, const QWidget * widget = 0, QStyleHintReturn * returnData = 0 ) const |
virtual QRect | subControlRect ( ComplexControl cc, const QStyleOptionComplex * opt, SubControl sc, const QWidget * widget = 0 ) const |
virtual QRect | subElementRect ( SubElement sr, const QStyleOption * opt, const QWidget * widget = 0 ) const |
virtual void | timerEvent ( QTimerEvent * event ) |
The QMotifStyle class provides Motif look and feel.
This class implements the Motif look and feel. It closely resembles the original Motif look as defined by the Open Group, but with some minor improvements. The Motif style is Qt's default GUI style on Unix platforms.
See also QWindowsXPStyle, QMacStyle, QWindowsStyle, QPlastiqueStyle, and QCDEStyle.
Constructs a QMotifStyle.
If useHighlightCols is false (the default), 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.
This is an overloaded function.
Destroys the style.
Reimplemented from QStyle::drawComplexControl().
Reimplemented from QStyle::drawControl().
Reimplemented from QStyle::drawPrimitive().
Reimplemented from QObject::event().
Reimplemented from QStyle::pixelMetric().
Reimplemented from QStyle::polish().
If arg is false, 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 an application palette is set via QApplication::setPalette(). The current color palette of the application remains unchanged.
See also useHighlightColors() and QStyle::polish().
Reimplemented from QStyle::sizeFromContents().
Reimplemented from QStyle::standardPalette().
Reimplemented from QStyle::standardPixmap().
Reimplemented from QStyle::styleHint().
Reimplemented from QStyle::subControlRect().
Reimplemented from QStyle::subElementRect().
Reimplemented from QObject::timerEvent().
Returns true if the style treats the highlight colors of the palette in a Motif-like manner, which is a simple inversion between the base and the text color; otherwise returns false. The default is false.
See also setUseHighlightColors().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.