Qt Reference Documentation

QMaemo5Style Class Reference

The QMaemo5Style class provides a widget style rendered by GTK+ More...

 #include <QMaemo5Style>

Inherits QGtkStyle.

This class was introduced in Qt 4.6.

Public Types

enum PixelMetric { PM_Maemo5AppMenuHorizontalSpacing, PM_Maemo5AppMenuVerticalSpacing, PM_Maemo5AppMenuContentMargin, PM_Maemo5AppMenuLandscapeXOffset, ..., PM_Maemo5EditBarBackButtonHeight }
enum PrimitiveElement { PE_Maemo5InformationBox, PE_Maemo5AppMenu, PE_Maemo5EditBar, PE_Maemo5EditBarBackButton }

Public Functions

QMaemo5Style ()
~QMaemo5Style ()

Reimplemented Public Functions

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 )

Static Public Members

QColor standardColor ( const QString & logicalColorName )
QFont standardFont ( const QString & logicalFontName )
  • 2 static public members inherited from QGtkStyle
  • 6 static public members inherited from QStyle
  • 5 static public members inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 signal inherited from QObject
  • 2 protected functions inherited from QWindowsStyle
  • 7 protected functions inherited from QObject
  • 2 protected slots inherited from QStyle

Detailed Description

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.

Member Type Documentation

enum QMaemo5Style::PixelMetric

This enum contains additional Maemo 5 specific PixelMetric entries.

ConstantValueDescription
QMaemo5Style::PM_Maemo5AppMenuHorizontalSpacingPM_CustomBase / 2The 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 or modified in Qt 4.6.

See also QStyle::PixelMetric.

enum QMaemo5Style::PrimitiveElement

This enum contains additional Maemo 5 specific PrimitiveElement entries.

ConstantValueDescription
QMaemo5Style::PE_Maemo5InformationBoxPE_CustomBase / 2Represents 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 or modified in Qt 4.6.

See also QStyle::PrimitiveElement.

Member Function Documentation

QMaemo5Style::QMaemo5Style ()

Constructs a QMaemo5Style object.

QMaemo5Style::~QMaemo5Style ()

Destroys the QMaemo5Style object.

void QMaemo5Style::drawComplexControl ( ComplexControl control, const QStyleOptionComplex * option, QPainter * painter, const QWidget * widget ) const [virtual]

Reimplemented from QStyle::drawComplexControl().

void QMaemo5Style::drawControl ( ControlElement element, const QStyleOption * option, QPainter * painter, const QWidget * widget ) const [virtual]

Reimplemented from QStyle::drawControl().

void QMaemo5Style::drawPrimitive ( QStyle::PrimitiveElement element, const QStyleOption * option, QPainter * painter, const QWidget * widget ) const [virtual]

Reimplemented from QStyle::drawPrimitive().

QStyle::SubControl QMaemo5Style::hitTestComplexControl ( ComplexControl cc, const QStyleOptionComplex * opt, const QPoint & pt, const QWidget * w ) const [virtual]

Reimplemented from QStyle::hitTestComplexControl().

int QMaemo5Style::pixelMetric ( QStyle::PixelMetric metric, const QStyleOption * option = 0, const QWidget * widget = 0 ) const [virtual]

Reimplemented from QStyle::pixelMetric().

void QMaemo5Style::polish ( QApplication * app ) [virtual]

Reimplemented from QStyle::polish().

Sets the Maemo style file dialog hooks.

void QMaemo5Style::polish ( QWidget * widget ) [virtual]

Reimplemented from QStyle::polish().

QSize QMaemo5Style::sizeFromContents ( ContentsType type, const QStyleOption * option, const QSize & size, const QWidget * widget ) const [virtual]

Reimplemented from QStyle::sizeFromContents().

QColor QMaemo5Style::standardColor ( const QString & logicalColorName ) [static]

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().

QFont QMaemo5Style::standardFont ( const QString & logicalFontName ) [static]

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().

QPixmap QMaemo5Style::standardPixmap ( StandardPixmap standardPixmap, const QStyleOption * opt = 0, const QWidget * widget = 0 ) const [virtual]

Reimplemented from QStyle::standardPixmap().

int QMaemo5Style::styleHint ( StyleHint hint, const QStyleOption * option, const QWidget * widget, QStyleHintReturn * returnData ) const [virtual]

Reimplemented from QStyle::styleHint().

QRect QMaemo5Style::subControlRect ( ComplexControl control, const QStyleOptionComplex * option, SubControl subControl, const QWidget * widget ) const [virtual]

Reimplemented from QStyle::subControlRect().

QRect QMaemo5Style::subElementRect ( SubElement element, const QStyleOption * option, const QWidget * widget ) const [virtual]

Reimplemented from QStyle::subElementRect().

void QMaemo5Style::unpolish ( QWidget * widget ) [virtual]

Reimplemented from QStyle::unpolish().

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();