Classes - Annotated - Tree - Functions - Home - Structure

QMotifStyle Class Reference

The QMotifStyle class provides Motif look and feel. More...

#include <qmotifstyle.h>

Inherits QCommonStyle.

Inherited by QCDEStyle, QInterlaceStyle, QMotifPlusStyle and QSGIStyle.

List of all member functions.

Public Members


Detailed Description

The QMotifStyle class provides 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.

void QMotifStyle::drawExclusiveIndicatorMask ( QPainter * p, int x, int y, int, int, 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, 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.

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.


Copyright © 2001 TrolltechTrademarks
Qt version 3.0.0-beta1-beta1