| Classes - Annotated - Tree - Functions - Home - Structure

# 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 )
- 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, int, bool )

## 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.

## 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.

### QRect QMotifStyle::comboButtonFocusRect ( int x, int y, int w, int h ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### QRect QMotifStyle::comboButtonRect ( int x, int y, int w, int h ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QMotifStyle::drawArrow ( QPainter * p, ArrowType type, bool down, int x, int y, int w, int h, const QColorGroup & g, bool enabled, const QBrush * = 0 )

Reimplemented for internal reasons; the API is not affected.

### void QMotifStyle::drawBevelButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### 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.

### void QMotifStyle::drawCheckMark ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool act, bool dis ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QMotifStyle::drawComboButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool = FALSE, bool editable = FALSE, bool = TRUE, const QBrush * fb = 0 ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QMotifStyle::drawExclusiveIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool on, bool down = FALSE, bool = TRUE ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QMotifStyle::drawExclusiveIndicatorMask ( QPainter * p, int x, int y, int w, int h, bool ) `[virtual]`

Draws the mask of a mark indicating the state of an exclusive choice.

Reimplemented from QStyle.

### void QMotifStyle::drawFocusRect ( QPainter * p, const QRect & r, const QColorGroup & g, const QColor * bg =0, bool atBorder = FALSE ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QMotifStyle::drawIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, int s, bool down = FALSE, bool = TRUE ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QMotifStyle::drawPopupMenuItem ( QPainter * p, bool checkable, int maxpmw, int tab, QMenuItem * mi, const QPalette & pal, bool act, bool enabled, int x, int y, int w, int h ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QMotifStyle::drawPushButton ( QPushButton * btn, QPainter * p ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QMotifStyle::drawScrollBarControls ( QPainter * p, const QScrollBar * sb, int sliderStart, uint controls, uint activeControl ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QMotifStyle::drawSlider ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation orient, bool, bool ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QMotifStyle::drawSliderGroove ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, QCOORD, Orientation ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QMotifStyle::drawSplitter ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation orient ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QMotifStyle::drawTab ( QPainter * p, const QTabBar * tb, QTab * t, bool selected )

Reimplemented for internal reasons; the API is not affected.

### void QMotifStyle::drawTabMask ( QPainter * p, const QTabBar * tb, QTab * t, bool selected )

Reimplemented for internal reasons; the API is not affected.

### QSize QMotifStyle::exclusiveIndicatorSize () const `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### int QMotifStyle::extraPopupMenuItemWidth ( bool checkable, int maxpmw, QMenuItem * mi, const QFontMetrics & ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### QSize QMotifStyle::indicatorSize () const `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QMotifStyle::polish ( QApplication * a )

Reimplemented for internal reasons; the API is not affected.

### void QMotifStyle::polish ( QPalette & pal )

Reimplemented for internal reasons; the API is not affected.

### void QMotifStyle::polish ( QWidget * w ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QMotifStyle::polishPopupMenu ( QPopupMenu * p ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### int QMotifStyle::popupMenuItemHeight ( bool, QMenuItem * mi, const QFontMetrics & fm ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QMotifStyle::scrollBarMetrics ( const QScrollBar * sb, int & sliderMin, int & sliderMax, int & sliderLength, int & buttonDim ) `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### 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 ).

### int QMotifStyle::sliderLength () const `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### int QMotifStyle::splitterWidth () const `[virtual]`

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

### void QMotifStyle::tabbarMetrics ( const QTabBar * t, int & hframe, int & vframe, int & overlap )

Reimplemented for internal reasons; the API is not affected.

### 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.

Search the documentation, FAQ, qt-interest archive and more (uses www.trolltech.com):

This file is part of the Qt toolkit, copyright © 1995-2001 Trolltech, all rights reserved.