![]() |
Home · All Classes · All Functions · Overviews |
The QMaemo5Style class provides a widget style rendered by GTK+ More...
#include <QMaemo5Style>
Inherits QGtkStyle.
This class was introduced in Qt 4.6.
enum | PixelMetric { PM_Maemo5AppMenuHorizontalSpacing, PM_Maemo5AppMenuVerticalSpacing, PM_Maemo5AppMenuContentMargin, PM_Maemo5AppMenuLandscapeXOffset, ..., PM_Maemo5EditBarBackButtonHeight } |
enum | PrimitiveElement { PE_Maemo5InformationBox, PE_Maemo5AppMenu, PE_Maemo5EditBar, PE_Maemo5EditBarBackButton } |
QMaemo5Style () | |
~QMaemo5Style () |
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 | drawPrimitive ( QStyle::PrimitiveElement element, const QStyleOption * option, QPainter * painter, const QWidget * widget ) const |
virtual QStyle::SubControl | hitTestComplexControl ( ComplexControl cc, const QStyleOptionComplex * opt, const QPoint & pt, const QWidget * w ) const |
virtual int | pixelMetric ( QStyle::PixelMetric metric, const QStyleOption * option = 0, const QWidget * widget = 0 ) const |
virtual void | polish ( QApplication * app ) |
virtual void | polish ( QWidget * widget ) |
virtual QSize | sizeFromContents ( ContentsType type, const QStyleOption * option, const QSize & size, const QWidget * widget ) const |
virtual QPixmap | standardPixmap ( StandardPixmap standardPixmap, const QStyleOption * opt = 0, const QWidget * widget = 0 ) const |
virtual int | styleHint ( StyleHint hint, const QStyleOption * option, const QWidget * widget, QStyleHintReturn * returnData ) const |
virtual QRect | subControlRect ( ComplexControl control, const QStyleOptionComplex * option, SubControl subControl, const QWidget * widget ) const |
virtual QRect | subElementRect ( SubElement element, const QStyleOption * option, const QWidget * widget ) const |
virtual void | unpolish ( QWidget * widget ) |
QColor | standardColor ( const QString & logicalColorName ) |
QFont | standardFont ( const QString & logicalFontName ) |
The QMaemo5Style class provides a widget style rendered by GTK+
The QMaemo5Style style provides a look and feel that integrates Qt widgets into Hildon-based desktop environments.
It is largely based on QGtkStyle, but does some special magic to "Hildonize" the look and feel.
Note: The style requires GTK+ version 2.10 or later and the special patched GTK+ Hildon include files.
This enum contains additional Maemo 5 specific PixelMetric entries.
Constant | Value | Description |
---|---|---|
QMaemo5Style::PM_Maemo5AppMenuHorizontalSpacing | PM_CustomBase / 2 | The horizontal space between entries inside the Maemo 5 application menu. |
QMaemo5Style::PM_Maemo5AppMenuVerticalSpacing | ? | The vertical space between entries inside the Maemo 5 application menu. |
QMaemo5Style::PM_Maemo5AppMenuContentMargin | ? | The space around the Maemo 5 app menu content. |
QMaemo5Style::PM_Maemo5AppMenuLandscapeXOffset | ? | The space from the edge of the screen to the menu border. |
QMaemo5Style::PM_Maemo5AppMenuFilterGroupWidth | ? | The width of the Maemo5 menu filter group. |
QMaemo5Style::PM_Maemo5AppMenuFilterGroupVerticalSpacing | ? | The space between the filter group and the rest of the Maemo5 menu. |
QMaemo5Style::PM_Maemo5EditBarBackButtonWidth | ? | The width of the Maemo5 edit bar back button. |
QMaemo5Style::PM_Maemo5EditBarBackButtonHeight | ? | The height of the Maemo5 edit bar back button. |
This enum was introduced in Qt 4.6.
See also QStyle::PixelMetric.
This enum contains additional Maemo 5 specific PrimitiveElement entries.
Constant | Value | Description |
---|---|---|
QMaemo5Style::PE_Maemo5InformationBox | PE_CustomBase / 2 | Represents a Maemo 5 information box overlay. |
QMaemo5Style::PE_Maemo5AppMenu | ? | Represents a Maemo 5 application menu frame. |
QMaemo5Style::PE_Maemo5EditBar | ? | Represents the special Maemo 5 edit bar pop-up background. |
QMaemo5Style::PE_Maemo5EditBarBackButton | ? | Represents the back button for the edit bar. |
This enum was introduced in Qt 4.6.
See also QStyle::PrimitiveElement.
Constructs a QMaemo5Style object.
Destroys the QMaemo5Style object.
Reimplemented from QStyle::drawComplexControl().
Reimplemented from QStyle::drawControl().
Reimplemented from QStyle::drawPrimitive().
Reimplemented from QStyle::hitTestComplexControl().
Reimplemented from QStyle::pixelMetric().
Reimplemented from QStyle::polish().
Sets the Maemo style file dialog hooks.
Reimplemented from QStyle::polish().
Reimplemented from QStyle::sizeFromContents().
Returns a color for the given logicalColorName.
Please see the Maemo 5 style guides for a list of valid logical color names. If the named color cannot be found, the function returns an invalid color.
See also standardFont().
Returns a font for the given logicalFontName.
Please see the Maemo 5 style guides for a list of valid logical font names. If the named font cannot be found, the function returns the application's default font.
See also standardColor().
Reimplemented from QStyle::standardPixmap().
Reimplemented from QStyle::styleHint().
Reimplemented from QStyle::subControlRect().
Reimplemented from QStyle::subElementRect().
Reimplemented from QStyle::unpolish().
Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.6.2 |