48 |
49 |
49 // ----------------------------------------------------------------------------- |
50 // ----------------------------------------------------------------------------- |
50 // HbStyle::createPrimitive |
51 // HbStyle::createPrimitive |
51 // ----------------------------------------------------------------------------- |
52 // ----------------------------------------------------------------------------- |
52 // |
53 // |
53 QGraphicsItem * HbStyle::createPrimitive( |
54 QGraphicsObject * HbStyle::createPrimitive( |
54 HbStyle::Primitive primitive, |
55 HbStyle::PrimitiveType primitiveType, |
55 QGraphicsItem * parent ) const |
56 const QString &itemName, |
|
57 QGraphicsObject *parent ) const |
56 { |
58 { |
57 SMC_MOCK_METHOD2( QGraphicsItem *, HbStyle::Primitive, primitive, |
59 SMC_MOCK_METHOD3( QGraphicsObject *, HbStyle::PrimitiveType, primitiveType, |
58 QGraphicsItem *, parent ) |
60 const QString &, itemName, |
|
61 QGraphicsObject *, parent ) |
59 } |
62 } |
60 |
63 |
61 |
64 |
62 // ----------------------------------------------------------------------------- |
65 // ----------------------------------------------------------------------------- |
63 // HbStyle::updatePrimitive |
66 // HbStyle::updatePrimitive |
64 // ----------------------------------------------------------------------------- |
67 // ----------------------------------------------------------------------------- |
65 // |
68 // |
66 void HbStyle::updatePrimitive( |
69 bool HbStyle::updatePrimitive( |
67 QGraphicsItem * item, |
70 QGraphicsObject *primitive, |
68 HbStyle::Primitive primitive, |
71 const HbStylePrimitiveData *data, |
69 const QStyleOption * option ) const |
72 QGraphicsObject *parent ) const |
70 { |
73 { |
71 SMC_MOCK_METHOD3( void, QGraphicsItem *, item, |
74 SMC_MOCK_METHOD3( bool, QGraphicsObject *, primitive, |
72 HbStyle::Primitive, primitive, |
75 const HbStylePrimitiveData *, data, |
73 const QStyleOption *, option ) |
76 QGraphicsObject *, parent ) |
74 } |
77 } |
75 |
78 |
76 |
79 |
77 // ----------------------------------------------------------------------------- |
80 // ----------------------------------------------------------------------------- |
78 // HbStyle::setItemName |
81 // HbStyle::setItemName |