Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

QCDEStyle Class Reference

The QCDEStyle class provides a CDE look and feel. More...

#include <QCDEStyle>

Inherits QMotifStyle.

List of all members.

Writable Properties

Public Functions

Public Slots

Signals

Static Public Members

Protected Functions


Detailed Description

The QCDEStyle class provides a CDE look and feel.

This style provides a slightly improved Motif look similar to some versions of the Common Desktop Environment (CDE). The main differences are thinner frames and more modern radio buttons and checkboxes. Together with a dark background and a bright text/foreground color, the style looks quite attractive (at least for Motif fans).

Note that most of the functions provided by QCDEStyle are reimplementations of QStyle functions; see QStyle for their documentation. QCDEStyle provides overloads for drawControl() and drawPrimitive() which are documented here.


Member Function Documentation

QCDEStyle::QCDEStyle ( bool useHighlightCols = false )

Constructs a QCDEStyle.

If useHighlightCols is false (the default), 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.

QCDEStyle::~QCDEStyle ()   [virtual]

Destroys the style.

void QCDEStyle::drawControl ( ControlElement element, QPainter * p, const QWidget * widget, const QRect & r, const QPalette & pal, SFlags how = Style_Default, const Q3StyleOption & opt = Q3StyleOption::Default ) const

The control element to be drawn is specified by element. It is drawn on painter p. The widget may be given and may be useful for drawing the element. The rectangle in which the drawing must take place is r, and the palette to use is pal. The style flags are given by how, and the style options by opt.

void QCDEStyle::drawPrimitive ( PrimitiveElement pe, QPainter * p, const QRect & r, const QPalette & pal, SFlags flags = Style_Default, const Q3StyleOption & opt = Q3StyleOption::Default ) const

The primitive element to be drawn is specified by pe. It is drawn on the painter p. The rectangle in which the primitive is to be drawn is given by r, the palette by pal, the style flags by flags, and the options by opt.


Copyright © 2004 Trolltech. Trademarks
Qt 4.0.0-tp1