src/gui/styles/qs60style_p.h
branchRCL_3
changeset 4 3b1da2848fc7
parent 3 41300fa6a67c
child 5 d3bac044e0f0
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
   399     static QColor lighterColor(const QColor &baseColor);
   399     static QColor lighterColor(const QColor &baseColor);
   400     //deduces if the given widget should have separately themeable background
   400     //deduces if the given widget should have separately themeable background
   401     static bool drawsOwnThemeBackground(const QWidget *widget);
   401     static bool drawsOwnThemeBackground(const QWidget *widget);
   402 
   402 
   403     QFont s60Font(QS60StyleEnums::FontCategories fontCategory,
   403     QFont s60Font(QS60StyleEnums::FontCategories fontCategory,
   404         int pointSize = -1) const;
   404         int pointSize = -1, bool resolveFontSize = true) const;
   405     // clears all style caches (fonts, colors, pixmaps)
   405     // clears all style caches (fonts, colors, pixmaps)
   406     void clearCaches(CacheClearReason reason = CC_UndefinedChange);
   406     void clearCaches(CacheClearReason reason = CC_UndefinedChange);
   407 
   407 
   408     // themed main background oprations
   408     // themed main background oprations
   409     void setBackgroundTexture(QApplication *application) const;
   409     void setBackgroundTexture(QApplication *application) const;
   482     static QSize partSize(QS60StyleEnums::SkinParts part,
   482     static QSize partSize(QS60StyleEnums::SkinParts part,
   483         SkinElementFlags flags = KDefaultSkinElementFlags);
   483         SkinElementFlags flags = KDefaultSkinElementFlags);
   484     static QPixmap part(QS60StyleEnums::SkinParts part, const QSize &size,
   484     static QPixmap part(QS60StyleEnums::SkinParts part, const QSize &size,
   485         QPainter *painter, SkinElementFlags flags = KDefaultSkinElementFlags);
   485         QPainter *painter, SkinElementFlags flags = KDefaultSkinElementFlags);
   486 
   486 
   487     static QFont s60Font_specific(QS60StyleEnums::FontCategories fontCategory, int pointSize);
   487     static QFont s60Font_specific(QS60StyleEnums::FontCategories fontCategory,
       
   488                                   int pointSize, bool resolveFontSize);
   488 
   489 
   489     static QSize screenSize();
   490     static QSize screenSize();
   490 
   491 
   491     // Contains background texture.
   492     // Contains background texture.
   492     static QPixmap *m_background;
   493     static QPixmap *m_background;