Eneboo - Documentación para desarrolladores
|
The QPlatinumStyle class provides Mac/Platinum look and feel. Más...
#include <qplatinumstyle.h>
Métodos públicos | |
QPlatinumStyle () | |
virtual | ~QPlatinumStyle () |
void | drawPrimitive (PrimitiveElement pe, QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, const QStyleOption &=QStyleOption::Default) 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 | drawComplexControl (ComplexControl control, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags how=Style_Default, SCFlags sub=(uint) SC_All, SCFlags subActive=SC_None, const QStyleOption &=QStyleOption::Default) const |
QRect | querySubControlMetrics (ComplexControl control, const QWidget *widget, SubControl sc, const QStyleOption &=QStyleOption::Default) const |
int | pixelMetric (PixelMetric metric, const QWidget *widget=0) const |
QRect | subRect (SubRect r, const QWidget *widget) const |
QPlatinumStyle () | |
virtual | ~QPlatinumStyle () |
void | drawPrimitive (PrimitiveElement pe, QPainter *p, const QRect &r, const QColorGroup &cg, SFlags flags=Style_Default, const QStyleOption &=QStyleOption::Default) 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 | drawComplexControl (ComplexControl control, QPainter *p, const QWidget *widget, const QRect &r, const QColorGroup &cg, SFlags how=Style_Default, SCFlags sub=(uint) SC_All, SCFlags subActive=SC_None, const QStyleOption &=QStyleOption::Default) const |
QRect | querySubControlMetrics (ComplexControl control, const QWidget *widget, SubControl sc, const QStyleOption &=QStyleOption::Default) const |
int | pixelMetric (PixelMetric metric, const QWidget *widget=0) const |
QRect | subRect (SubRect r, const QWidget *widget) const |
Métodos protegidos | |
QColor | mixedColor (const QColor &, const QColor &) const |
void | drawRiffles (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool horizontal) const |
QColor | mixedColor (const QColor &, const QColor &) const |
void | drawRiffles (QPainter *p, int x, int y, int w, int h, const QColorGroup &g, bool horizontal) const |
The QPlatinumStyle class provides Mac/Platinum look and feel.
This class implements the Platinum look and feel. It's an experimental class that tries to resemble a Macinosh-like GUI style with the QStyle system. The emulation is currently far from perfect.
QPlatinumStyle::QPlatinumStyle | ( | ) |
Constructs a QPlatinumStyle
QPlatinumStyle::~QPlatinumStyle | ( | ) | [virtual] |
QPlatinumStyle::QPlatinumStyle | ( | ) |
virtual QPlatinumStyle::~QPlatinumStyle | ( | ) | [virtual] |
void QPlatinumStyle::drawComplexControl | ( | ComplexControl | control, |
QPainter * | p, | ||
const QWidget * | widget, | ||
const QRect & | r, | ||
const QColorGroup & | cg, | ||
SFlags | how = Style_Default , |
||
SCFlags | sub = (uint)SC_All , |
||
SCFlags | subActive = SC_None , |
||
const QStyleOption & | opt = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QWindowsStyle.
void QPlatinumStyle::drawComplexControl | ( | ComplexControl | ctrl, |
QPainter * | p, | ||
const QWidget * | widget, | ||
const QRect & | r, | ||
const QColorGroup & | cg, | ||
SFlags | flags = Style_Default , |
||
SCFlags | sub = (uint)SC_All , |
||
SCFlags | subActive = SC_None , |
||
const QStyleOption & | opt = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QWindowsStyle.
void QPlatinumStyle::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 QWindowsStyle.
void QPlatinumStyle::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 QWindowsStyle.
void QPlatinumStyle::drawPrimitive | ( | PrimitiveElement | pe, |
QPainter * | p, | ||
const QRect & | r, | ||
const QColorGroup & | cg, | ||
SFlags | flags = Style_Default , |
||
const QStyleOption & | opt = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QWindowsStyle.
void QPlatinumStyle::drawPrimitive | ( | PrimitiveElement | pe, |
QPainter * | p, | ||
const QRect & | r, | ||
const QColorGroup & | cg, | ||
SFlags | flags = Style_Default , |
||
const QStyleOption & | opt = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QWindowsStyle.
void QPlatinumStyle::drawRiffles | ( | QPainter * | p, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
const QColorGroup & | g, | ||
bool | horizontal | ||
) | const [protected] |
void QPlatinumStyle::drawRiffles | ( | QPainter * | p, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
const QColorGroup & | g, | ||
bool | horizontal | ||
) | const [protected] |
Draws the nifty Macintosh decoration used on sliders using painter p and colorgroup g. x, y, w, h and horizontal specify the geometry and orientation of the riffles.
Mixes two colors c1 and c2 to a new color.
int QPlatinumStyle::pixelMetric | ( | PixelMetric | metric, |
const QWidget * | widget = 0 |
||
) | const [virtual] |
Reimplementado de QWindowsStyle.
int QPlatinumStyle::pixelMetric | ( | PixelMetric | metric, |
const QWidget * | widget = 0 |
||
) | const [virtual] |
Reimplementado de QWindowsStyle.
QRect QPlatinumStyle::querySubControlMetrics | ( | ComplexControl | control, |
const QWidget * | widget, | ||
SubControl | sc, | ||
const QStyleOption & | opt = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QCommonStyle.
QRect QPlatinumStyle::querySubControlMetrics | ( | ComplexControl | control, |
const QWidget * | widget, | ||
SubControl | sc, | ||
const QStyleOption & | opt = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QCommonStyle.
Reimplementado de QWindowsStyle.
Reimplementado de QWindowsStyle.