qhbstyle/qhbstyle_p.h
changeset 11 06b8e2af4411
parent 4 90517678cc4f
equal deleted inserted replaced
8:71781823f776 11:06b8e2af4411
    63     SM_BoxFrame,
    63     SM_BoxFrame,
    64     SM_Dialog,
    64     SM_Dialog,
    65     SM_GroupBox,
    65     SM_GroupBox,
    66     SM_GroupBoxTitle,
    66     SM_GroupBoxTitle,
    67     SM_HeaderItem,
    67     SM_HeaderItem,
    68     SM_ItemViewHighlight,
       
    69     SM_ItemViewItem,
    68     SM_ItemViewItem,
    70     SM_LineEdit,
    69     SM_LineEdit,
    71     SM_ListParent,
    70     SM_ListParent,
    72     SM_Menu,
    71     SM_Menu,
    73     SM_MenuItem,
    72     SM_MenuItem,
    86     SM_ThemeBackground,
    85     SM_ThemeBackground,
    87     SM_ToolBar,
    86     SM_ToolBar,
    88     SM_ToolBarButton,
    87     SM_ToolBarButton,
    89     SM_ToolButton,
    88     SM_ToolButton,
    90     SM_ToolTip,
    89     SM_ToolTip,
       
    90     SM_ToolBarExtension,
    91 };
    91 };
    92 
    92 
    93 enum ItemState {
    93 enum ItemState {
    94     SS_Active       = 0x000001,  // "On"
    94     SS_Active       = 0x000001,  // "On"
    95     SS_Inactive     = 0x000002,  // "Off"
    95     SS_Inactive     = 0x000002,  // "Off"
   138     bool drawMultiPartItem(MultiPartItem multiPart, QPainter *painter, const QRect &rect, ItemStates state = ItemStates(SS_Active | SS_Horizontal));
   138     bool drawMultiPartItem(MultiPartItem multiPart, QPainter *painter, const QRect &rect, ItemStates state = ItemStates(SS_Active | SS_Horizontal));
   139 
   139 
   140     bool isDialog(const QWidget *widget);
   140     bool isDialog(const QWidget *widget);
   141     bool hbParameter(const QString &parameterName, int &value);
   141     bool hbParameter(const QString &parameterName, int &value);
   142     void polishFont(QWidget *widget);
   142     void polishFont(QWidget *widget);
       
   143     void polishPalette(QWidget *widget);
   143 
   144 
   144 private:
   145 private:
   145     HbStyle *m_styleManager;
   146     HbStyle *m_styleManager;
   146     HbFrameDrawer *m_frameDrawer;
   147     QScopedPointer<HbFrameDrawer> m_frameDrawer;
   147     QParallelAnimationGroup* m_animationGroup;
   148     QScopedPointer<QParallelAnimationGroup> m_animationGroup;
   148 
       
   149     //QHbStyle *q_ptr;
       
   150 };
   149 };
   151 
   150 
   152 QT_END_NAMESPACE
   151 QT_END_NAMESPACE
   153 
   152 
   154 #endif // QT_NO_STYLE_HB
   153 #endif // QT_NO_STYLE_HB