src/gui/styles/qs60style.h
changeset 33 3e2da88830cd
parent 19 fcece45ef507
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    48 
    48 
    49 QT_BEGIN_NAMESPACE
    49 QT_BEGIN_NAMESPACE
    50 
    50 
    51 QT_MODULE(Gui)
    51 QT_MODULE(Gui)
    52 
    52 
    53 #if !defined(QT_NO_STYLE_S60)
       
    54 
       
    55 //Public custom pixel metrics values.
    53 //Public custom pixel metrics values.
    56 //These can be used to fetch custom pixel metric value from outside QS60Style.
    54 //These can be used to fetch custom pixel metric value from outside QS60Style.
    57 enum {
    55 enum {
    58     PM_FrameCornerWidth = QStyle::PM_CustomBase + 1,
    56     PM_FrameCornerWidth = QStyle::PM_CustomBase + 1,
    59     PM_FrameCornerHeight,
    57     PM_FrameCornerHeight,
    89 #ifndef Q_NO_USING_KEYWORD
    87 #ifndef Q_NO_USING_KEYWORD
    90     using QCommonStyle::polish;
    88     using QCommonStyle::polish;
    91 #endif
    89 #endif
    92     bool event(QEvent *e);
    90     bool event(QEvent *e);
    93 
    91 
    94 #ifndef Q_WS_S60
    92 #ifndef Q_OS_SYMBIAN
    95     static QStringList partKeys();
    93     static QStringList partKeys();
    96     static QStringList colorListKeys();
    94     static QStringList colorListKeys();
    97     void setS60Theme(const QHash<QString, QPicture> &parts,
    95     void setS60Theme(const QHash<QString, QPicture> &parts,
    98         const QHash<QPair<QString , int>, QColor> &colors);
    96         const QHash<QPair<QString , int>, QColor> &colors);
    99     bool loadS60ThemeFromBlob(const QString &blobFile);
    97     bool loadS60ThemeFromBlob(const QString &blobFile);
   100     bool saveS60ThemeToBlob(const QString &blobFile) const;
    98     bool saveS60ThemeToBlob(const QString &blobFile) const;
   101 #endif // !Q_WS_S60
    99 #endif // !Q_OS_SYMBIAN
   102 
   100 
   103 protected Q_SLOTS:
   101 protected Q_SLOTS:
   104     QIcon standardIconImplementation(
   102     QIcon standardIconImplementation(
   105             StandardPixmap standardIcon, const QStyleOption * option = 0, const QWidget * widget = 0 ) const;
   103             StandardPixmap standardIcon, const QStyleOption * option = 0, const QWidget * widget = 0 ) const;
   106 
   104 
   111     Q_DISABLE_COPY(QS60Style)
   109     Q_DISABLE_COPY(QS60Style)
   112     friend class QStyleFactory;
   110     friend class QStyleFactory;
   113     friend class QApplicationPrivate;
   111     friend class QApplicationPrivate;
   114 };
   112 };
   115 
   113 
   116 #endif // QT_NO_STYLE_S60
       
   117 
       
   118 QT_END_NAMESPACE
   114 QT_END_NAMESPACE
   119 
   115 
   120 QT_END_HEADER
   116 QT_END_HEADER
   121 
   117 
   122 #endif // QS60STYLE_H
   118 #endif // QS60STYLE_H