
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQCleanlooksStyle class provides a widget style similar to the Clearlooks style available in GNOME.More...
| Header: | #include <QCleanlooksStyle> |
| Since: | Qt 4.2 |
| Inherits: | QWindowsStyle |
| Inherited By: |
| virtual void | drawComplexControl(ComplexControl control, const QStyleOptionComplex * option, QPainter * painter, const QWidget * widget) const |
| virtual void | drawControl(ControlElement element, const QStyleOption * option, QPainter * painter, const QWidget * widget) const |
| virtual void | drawItemPixmap(QPainter * painter, const QRect & rect, int alignment, const QPixmap & pixmap) const |
| virtual void | drawItemText(QPainter * painter, const QRect & rectangle, int alignment, const QPalette & palette, bool enabled, const QString & text, QPalette::ColorRole textRole = QPalette::NoRole) const |
| virtual void | drawPrimitive(PrimitiveElement elem, const QStyleOption * option, QPainter * painter, const QWidget * widget = 0) const |
| virtual QPixmap | generatedIconPixmap(QIcon::Mode iconMode, const QPixmap & pixmap, const QStyleOption * opt) const |
| virtual SubControl | hitTestComplexControl(ComplexControl cc, const QStyleOptionComplex * opt, const QPoint & pt, const QWidget * w = 0) const |
| virtual QRect | itemPixmapRect(const QRect & r, int flags, const QPixmap & pixmap) const |
| virtual int | pixelMetric(PixelMetric metric, const QStyleOption * option = 0, const QWidget * widget = 0) const |
| virtual void | polish(QWidget * widget) |
| virtual void | polish(QApplication * app) |
| virtual void | polish(QPalette & pal) |
| virtual QSize | sizeFromContents(ContentsType type, const QStyleOption * option, const QSize & size, const QWidget * widget) const |
| virtual QPalette | standardPalette() const |
| virtual QPixmap | standardPixmap(StandardPixmap standardPixmap, const QStyleOption * opt, const QWidget * widget = 0) const |
| virtual int | styleHint(StyleHint hint, const QStyleOption * option = 0, const QWidget * widget = 0, QStyleHintReturn * returnData = 0) const |
| virtual QRect | subControlRect(ComplexControl control, const QStyleOptionComplex * option, SubControl subControl, const QWidget * widget) const |
| virtual QRect | subElementRect(SubElement sr, const QStyleOption * opt, const QWidget * w = 0) const |
| virtual void | unpolish(QWidget * widget) |
| virtual void | unpolish(QApplication * app) |
TheQCleanlooksStyle class provides a widget style similar to the Clearlooks style available in GNOME.
The Cleanlooks style provides a look and feel for widgets that closely resembles the Clearlooks style, introduced by Richard Stellingwerff and Daniel Borgmann.
See alsoCleanlooks Style Widget Gallery,QWindowsXPStyle,QMacStyle,QWindowsStyle,QCDEStyle,QMotifStyle, andQPlastiqueStyle.
Constructs aQCleanlooksStyle object.
Destroys theQCleanlooksStyle object.
[virtual]void QCleanlooksStyle::drawComplexControl(ComplexControl control, constQStyleOptionComplex * option,QPainter * painter, constQWidget * widget) constReimplemented fromQStyle::drawComplexControl().
[virtual]void QCleanlooksStyle::drawControl(ControlElement element, constQStyleOption * option,QPainter * painter, constQWidget * widget) constReimplemented fromQStyle::drawControl().
[virtual]void QCleanlooksStyle::drawItemPixmap(QPainter * painter, constQRect & rect,int alignment, constQPixmap & pixmap) constReimplemented fromQStyle::drawItemPixmap().
[virtual]void QCleanlooksStyle::drawItemText(QPainter * painter, constQRect & rectangle,int alignment, constQPalette & palette,bool enabled, constQString & text,QPalette::ColorRole textRole = QPalette::NoRole) constReimplemented fromQStyle::drawItemText().
Draws the giventext in the specifiedrectangle using the providedpainter andpalette.
Text is drawn using the painter's pen. If an explicittextRole is specified, then the text is drawn using thepalette's color for the specified role. Theenabled value indicates whether or not the item is enabled; when reimplementing, this value should influence how the item is drawn.
The text is aligned and wrapped according to the specifiedalignment.
See alsoQt::Alignment.
[virtual]void QCleanlooksStyle::drawPrimitive(PrimitiveElement elem, constQStyleOption * option,QPainter * painter, constQWidget * widget = 0) constReimplemented fromQStyle::drawPrimitive().
[virtual]QPixmap QCleanlooksStyle::generatedIconPixmap(QIcon::Mode iconMode, constQPixmap & pixmap, constQStyleOption * opt) constReimplemented fromQStyle::generatedIconPixmap().
[virtual]SubControl QCleanlooksStyle::hitTestComplexControl(ComplexControl cc, constQStyleOptionComplex * opt, constQPoint & pt, constQWidget * w = 0) constReimplemented fromQStyle::hitTestComplexControl().
[virtual]QRect QCleanlooksStyle::itemPixmapRect(constQRect & r,int flags, constQPixmap & pixmap) constReimplemented fromQStyle::itemPixmapRect().
[virtual]int QCleanlooksStyle::pixelMetric(PixelMetric metric, constQStyleOption * option = 0, constQWidget * widget = 0) constReimplemented fromQStyle::pixelMetric().
[virtual]void QCleanlooksStyle::polish(QWidget * widget)Reimplemented fromQStyle::polish().
[virtual]void QCleanlooksStyle::polish(QApplication * app)Reimplemented fromQStyle::polish().
[virtual]void QCleanlooksStyle::polish(QPalette & pal)Reimplemented fromQStyle::polish().
[virtual]QSize QCleanlooksStyle::sizeFromContents(ContentsType type, constQStyleOption * option, constQSize & size, constQWidget * widget) constReimplemented fromQStyle::sizeFromContents().
[virtual]QPalette QCleanlooksStyle::standardPalette() constReimplemented fromQStyle::standardPalette().
[virtual]QPixmap QCleanlooksStyle::standardPixmap(StandardPixmap standardPixmap, constQStyleOption * opt, constQWidget * widget = 0) constReimplemented fromQStyle::standardPixmap().
[virtual]int QCleanlooksStyle::styleHint(StyleHint hint, constQStyleOption * option = 0, constQWidget * widget = 0,QStyleHintReturn * returnData = 0) constReimplemented fromQStyle::styleHint().
[virtual]QRect QCleanlooksStyle::subControlRect(ComplexControl control, constQStyleOptionComplex * option,SubControl subControl, constQWidget * widget) constReimplemented fromQStyle::subControlRect().
[virtual]QRect QCleanlooksStyle::subElementRect(SubElement sr, constQStyleOption * opt, constQWidget * w = 0) constReimplemented fromQStyle::subElementRect().
[virtual]void QCleanlooksStyle::unpolish(QWidget * widget)Reimplemented fromQStyle::unpolish().
[virtual]void QCleanlooksStyle::unpolish(QApplication * app)Reimplemented fromQStyle::unpolish().
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.