Eneboo - Documentación para desarrolladores
|
The QWindowsStyle class provides a Microsoft Windows-like look and feel. Más...
#include <qwindowsstyle.h>
Clases | |
class | Private |
Métodos públicos | |
QWindowsStyle () | |
~QWindowsStyle () | |
void | polish (QApplication *) |
void | unPolish (QApplication *) |
void | polish (QWidget *) |
void | unPolish (QWidget *) |
void | polish (QPalette &) |
virtual void | polishPopupMenu (QPopupMenu *) |
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 flags=Style_Default, const QStyleOption &=QStyleOption::Default) const |
void | drawComplexControl (ComplexControl control, 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 &=QStyleOption::Default) const |
int | pixelMetric (PixelMetric metric, const QWidget *widget=0) const |
QSize | sizeFromContents (ContentsType contents, const QWidget *widget, const QSize &contentsSize, const QStyleOption &=QStyleOption::Default) const |
int | styleHint (StyleHint sh, const QWidget *, const QStyleOption &=QStyleOption::Default, QStyleHintReturn *=0) const |
QPixmap | stylePixmap (StylePixmap stylepixmap, const QWidget *widget=0, const QStyleOption &=QStyleOption::Default) const |
QRect | subRect (SubRect r, const QWidget *widget) const |
QWindowsStyle () | |
~QWindowsStyle () | |
void | polish (QApplication *) |
void | unPolish (QApplication *) |
void | polish (QWidget *) |
void | unPolish (QWidget *) |
void | polish (QPalette &) |
virtual void | polishPopupMenu (QPopupMenu *) |
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 flags=Style_Default, const QStyleOption &=QStyleOption::Default) const |
void | drawComplexControl (ComplexControl control, 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 &=QStyleOption::Default) const |
int | pixelMetric (PixelMetric metric, const QWidget *widget=0) const |
QSize | sizeFromContents (ContentsType contents, const QWidget *widget, const QSize &contentsSize, const QStyleOption &=QStyleOption::Default) const |
int | styleHint (StyleHint sh, const QWidget *, const QStyleOption &=QStyleOption::Default, QStyleHintReturn *=0) const |
QPixmap | stylePixmap (StylePixmap stylepixmap, const QWidget *widget=0, const QStyleOption &=QStyleOption::Default) const |
QRect | subRect (SubRect r, const QWidget *widget) const |
The QWindowsStyle class provides a Microsoft Windows-like look and feel.
This style is Qt's default GUI style on Windows.
QWindowsStyle::QWindowsStyle | ( | ) |
Constructs a QWindowsStyle
QWindowsStyle::~QWindowsStyle | ( | ) |
QWindowsStyle::QWindowsStyle | ( | ) |
QWindowsStyle::~QWindowsStyle | ( | ) |
void QWindowsStyle::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 QCommonStyle.
Reimplementado en QPlatinumStyle y QPlatinumStyle.
void QWindowsStyle::drawComplexControl | ( | ComplexControl | control, |
QPainter * | p, | ||
const QWidget * | widget, | ||
const QRect & | r, | ||
const QColorGroup & | cg, | ||
SFlags | flags = Style_Default , |
||
SCFlags | controls = (uint)SC_All , |
||
SCFlags | active = SC_None , |
||
const QStyleOption & | opt = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QCommonStyle.
Reimplementado en QPlatinumStyle y QPlatinumStyle.
void QWindowsStyle::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 QCommonStyle.
Reimplementado en QPlatinumStyle y QPlatinumStyle.
void QWindowsStyle::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 QCommonStyle.
Reimplementado en QPlatinumStyle y QPlatinumStyle.
void QWindowsStyle::drawPrimitive | ( | PrimitiveElement | pe, |
QPainter * | p, | ||
const QRect & | r, | ||
const QColorGroup & | cg, | ||
SFlags | flags = Style_Default , |
||
const QStyleOption & | opt = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QCommonStyle.
Reimplementado en QPlatinumStyle y QPlatinumStyle.
void QWindowsStyle::drawPrimitive | ( | PrimitiveElement | pe, |
QPainter * | p, | ||
const QRect & | r, | ||
const QColorGroup & | cg, | ||
SFlags | flags = Style_Default , |
||
const QStyleOption & | opt = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QCommonStyle.
Reimplementado en QPlatinumStyle y QPlatinumStyle.
int QWindowsStyle::pixelMetric | ( | PixelMetric | metric, |
const QWidget * | widget = 0 |
||
) | const [virtual] |
Reimplementado de QCommonStyle.
Reimplementado en QPlatinumStyle y QPlatinumStyle.
int QWindowsStyle::pixelMetric | ( | PixelMetric | m, |
const QWidget * | widget = 0 |
||
) | const [virtual] |
Reimplementado de QCommonStyle.
Reimplementado en QPlatinumStyle y QPlatinumStyle.
void QWindowsStyle::polish | ( | QWidget * | ) | [virtual] |
Initializes the appearance of a widget.
This function is called for every widget at some point after it has been fully created but just before it is shown the very first time.
Reasonable actions in this function might be to call QWidget::setBackgroundMode() for the widget. An example of highly unreasonable use would be setting the geometry! Reimplementing this function gives you a back-door through which you can change the appearance of a widget. With Qt 3.0's style engine you will rarely need to write your own polish(); instead reimplement drawItem(), drawPrimitive(), etc.
The QWidget::inherits() function may provide enough information to allow class-specific customizations. But be careful not to hard-code things too much because new QStyle subclasses are expected to work reasonably with all current and future widgets.
Reimplementado de QStyle.
void QWindowsStyle::polish | ( | QPalette & | ) | [virtual] |
Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. The style may have certain requirements for color palettes. In this function it has the chance to change the palette according to these requirements.
Reimplementado de QStyle.
void QWindowsStyle::polish | ( | QApplication * | app | ) | [virtual] |
Reimplementado de QStyle.
void QWindowsStyle::polish | ( | QApplication * | ) | [virtual] |
Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. Late initialization of the QApplication object.
Reimplementado de QStyle.
virtual void QWindowsStyle::polishPopupMenu | ( | QPopupMenu * | ) | [virtual] |
Polishes the popup menu according to the GUI style. This usually means setting the mouse tracking ({QPopupMenu::setMouseTracking()}) and whether the menu is checkable by default ({QPopupMenu::setCheckable()}).
Implementa QStyle.
void QWindowsStyle::polishPopupMenu | ( | QPopupMenu * | p | ) | [virtual] |
Implementa QStyle.
QSize QWindowsStyle::sizeFromContents | ( | ContentsType | contents, |
const QWidget * | widget, | ||
const QSize & | contentsSize, | ||
const QStyleOption & | opt = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QCommonStyle.
QSize QWindowsStyle::sizeFromContents | ( | ContentsType | contents, |
const QWidget * | widget, | ||
const QSize & | contentsSize, | ||
const QStyleOption & | opt = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QCommonStyle.
int QWindowsStyle::styleHint | ( | StyleHint | hint, |
const QWidget * | widget, | ||
const QStyleOption & | opt = QStyleOption::Default , |
||
QStyleHintReturn * | returnData = 0 |
||
) | const [virtual] |
Reimplementado de QCommonStyle.
int QWindowsStyle::styleHint | ( | StyleHint | sh, |
const QWidget * | w, | ||
const QStyleOption & | = QStyleOption::Default , |
||
QStyleHintReturn * | = 0 |
||
) | const [virtual] |
Reimplementado de QCommonStyle.
QPixmap QWindowsStyle::stylePixmap | ( | StylePixmap | stylepixmap, |
const QWidget * | widget = 0 , |
||
const QStyleOption & | opt = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QCommonStyle.
QPixmap QWindowsStyle::stylePixmap | ( | StylePixmap | sp, |
const QWidget * | widget = 0 , |
||
const QStyleOption & | = QStyleOption::Default |
||
) | const [virtual] |
Reimplementado de QCommonStyle.
Reimplementado de QCommonStyle.
Reimplementado en QPlatinumStyle y QPlatinumStyle.
Reimplementado de QCommonStyle.
Reimplementado en QPlatinumStyle y QPlatinumStyle.
void QWindowsStyle::unPolish | ( | QApplication * | ) | [virtual] |
void QWindowsStyle::unPolish | ( | QWidget * | ) | [virtual] |
Undoes the initialization of a widget's appearance.
This function is the counterpart to polish. It is called for every polished widget when the style is dynamically changed. The former style has to unpolish its settings before the new style can polish them again.
Reimplementado de QStyle.
void QWindowsStyle::unPolish | ( | QApplication * | ) | [virtual] |
Reimplementado de QStyle.