Eneboo - Documentación para desarrolladores
|
The QCDEStyle class provides a CDE look and feel. Más...
#include <qcdestyle.h>
Métodos públicos | |
QCDEStyle (bool useHighlightCols=FALSE) | |
virtual | ~QCDEStyle () |
int | pixelMetric (PixelMetric metric, const QWidget *widget=0) const |
void | drawControl (ControlElement element, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags how=Style_Default, const QStyleOption &=QStyleOption::Default) const |
void | drawPrimitive (PrimitiveElement pe, QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, const QStyleOption &=QStyleOption::Default) const |
QCDEStyle (bool useHighlightCols=FALSE) | |
virtual | ~QCDEStyle () |
int | pixelMetric (PixelMetric metric, const QWidget *widget=0) const |
void | drawControl (ControlElement element, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags how=Style_Default, const QStyleOption &=QStyleOption::Default) const |
void | drawPrimitive (PrimitiveElement pe, QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, const QStyleOption &=QStyleOption::Default) const |
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 the functions provided by QCDEStyle are reimplementations of QStyle functions; see QStyle for their 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.
QCDEStyle::QCDEStyle | ( | bool | useHighlightCols = FALSE | ) |
virtual QCDEStyle::~QCDEStyle | ( | ) | [virtual] |
void QCDEStyle::drawControl | ( | ControlElement | element, |
QPainter * | p, | ||
const QWidget * | widget, | ||
const QRect & | r, | ||
const QColorGroup & | cg, | ||
SFlags | how = Style_Default , |
||
const QStyleOption & | opt = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QMotifStyle.
void QCDEStyle::drawControl | ( | ControlElement | element, |
QPainter * | p, | ||
const QWidget * | widget, | ||
const QRect & | r, | ||
const QColorGroup & | cg, | ||
SFlags | flags = Style_Default , |
||
const QStyleOption & | opt = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QMotifStyle.
void QCDEStyle::drawPrimitive | ( | PrimitiveElement | pe, |
QPainter * | p, | ||
const QRect & | r, | ||
const QColorGroup & | cg, | ||
SFlags | flags = Style_Default , |
||
const QStyleOption & | opt = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QMotifStyle.
void QCDEStyle::drawPrimitive | ( | PrimitiveElement | pe, |
QPainter * | p, | ||
const QRect & | r, | ||
const QColorGroup & | cg, | ||
SFlags | flags = Style_Default , |
||
const QStyleOption & | opt = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QMotifStyle.
int QCDEStyle::pixelMetric | ( | PixelMetric | metric, |
const QWidget * | widget = 0 |
||
) | const [virtual] |
Reimplementado de QMotifStyle.
int QCDEStyle::pixelMetric | ( | PixelMetric | metric, |
const QWidget * | widget = 0 |
||
) | const [virtual] |
Reimplementado de QMotifStyle.