1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 #include <QDebug> |
|
18 #include <smcmockclassincludes.h> |
|
19 #include <hbmarqueeitem.h> |
|
20 |
|
21 // ============================ MEMBER FUNCTIONS =============================== |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // HbMarqueeItem::HbMarqueeItem |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 HbMarqueeItem::HbMarqueeItem( |
|
28 QGraphicsItem * parent ) |
|
29 { |
|
30 Q_UNUSED(parent) |
|
31 } |
|
32 |
|
33 |
|
34 // ----------------------------------------------------------------------------- |
|
35 // HbMarqueeItem::HbMarqueeItem |
|
36 // ----------------------------------------------------------------------------- |
|
37 // |
|
38 HbMarqueeItem::HbMarqueeItem( |
|
39 const QString & text, |
|
40 QGraphicsItem * parent ) |
|
41 { |
|
42 Q_UNUSED(text) |
|
43 Q_UNUSED(parent) |
|
44 } |
|
45 |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // HbMarqueeItem::~HbMarqueeItem |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 HbMarqueeItem::~HbMarqueeItem( ) |
|
52 { |
|
53 |
|
54 } |
|
55 |
|
56 |
|
57 // ----------------------------------------------------------------------------- |
|
58 // HbMarqueeItem::text |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 QString HbMarqueeItem::text( ) const |
|
62 { |
|
63 SMC_MOCK_METHOD0( QString ) |
|
64 } |
|
65 |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // HbMarqueeItem::setTextColor |
|
69 // ----------------------------------------------------------------------------- |
|
70 // |
|
71 void HbMarqueeItem::setTextColor( |
|
72 const QColor & color ) |
|
73 { |
|
74 SMC_MOCK_METHOD1( void, const QColor &, color ) |
|
75 } |
|
76 |
|
77 |
|
78 // ----------------------------------------------------------------------------- |
|
79 // HbMarqueeItem::textColor |
|
80 // ----------------------------------------------------------------------------- |
|
81 // |
|
82 QColor HbMarqueeItem::textColor( ) const |
|
83 { |
|
84 SMC_MOCK_METHOD0( QColor ) |
|
85 } |
|
86 |
|
87 |
|
88 // ----------------------------------------------------------------------------- |
|
89 // HbMarqueeItem::isAnimating |
|
90 // ----------------------------------------------------------------------------- |
|
91 // |
|
92 bool HbMarqueeItem::isAnimating( ) const |
|
93 { |
|
94 SMC_MOCK_METHOD0( bool ) |
|
95 } |
|
96 |
|
97 |
|
98 // ----------------------------------------------------------------------------- |
|
99 // HbMarqueeItem::loopCount |
|
100 // ----------------------------------------------------------------------------- |
|
101 // |
|
102 int HbMarqueeItem::loopCount( ) const |
|
103 { |
|
104 SMC_MOCK_METHOD0( int ) |
|
105 } |
|
106 |
|
107 |
|
108 // ----------------------------------------------------------------------------- |
|
109 // HbMarqueeItem::setLoopCount |
|
110 // ----------------------------------------------------------------------------- |
|
111 // |
|
112 void HbMarqueeItem::setLoopCount( |
|
113 int count ) |
|
114 { |
|
115 SMC_MOCK_METHOD1( void, int, count ) |
|
116 } |
|
117 |
|
118 // ----------------------------------------------------------------------------- |
|
119 // HbMarqueeItem::setText |
|
120 // ----------------------------------------------------------------------------- |
|
121 // |
|
122 void HbMarqueeItem::setText( |
|
123 const QString & text ) |
|
124 { |
|
125 SMC_MOCK_METHOD1( void, const QString &, text ) |
|
126 } |
|
127 |
|
128 |
|
129 // ----------------------------------------------------------------------------- |
|
130 // HbMarqueeItem::startAnimation |
|
131 // ----------------------------------------------------------------------------- |
|
132 // |
|
133 void HbMarqueeItem::startAnimation( ) |
|
134 { |
|
135 SMC_MOCK_METHOD0( void ) |
|
136 } |
|
137 |
|
138 |
|
139 // ----------------------------------------------------------------------------- |
|
140 // HbMarqueeItem::stopAnimation |
|
141 // ----------------------------------------------------------------------------- |
|
142 // |
|
143 void HbMarqueeItem::stopAnimation( ) |
|
144 { |
|
145 SMC_MOCK_METHOD0( void ) |
|
146 } |
|
147 |
|
148 |
|
149 // ----------------------------------------------------------------------------- |
|
150 // HbMarqueeItem::animationStarted |
|
151 // ----------------------------------------------------------------------------- |
|
152 // |
|
153 void HbMarqueeItem::animationStarted( ) |
|
154 { |
|
155 SMC_MOCK_METHOD0( void ) |
|
156 } |
|
157 |
|
158 |
|
159 // ----------------------------------------------------------------------------- |
|
160 // HbMarqueeItem::animationStopped |
|
161 // ----------------------------------------------------------------------------- |
|
162 // |
|
163 void HbMarqueeItem::animationStopped( ) |
|
164 { |
|
165 SMC_MOCK_METHOD0( void ) |
|
166 } |
|
167 |
|
168 |
|
169 // ----------------------------------------------------------------------------- |
|
170 // HbMarqueeItem::sizeHint |
|
171 // ----------------------------------------------------------------------------- |
|
172 // |
|
173 QSizeF HbMarqueeItem::sizeHint( |
|
174 Qt::SizeHint which, |
|
175 const QSizeF & constraint ) const |
|
176 { |
|
177 SMC_MOCK_METHOD2( QSizeF, Qt::SizeHint, which, |
|
178 const QSizeF &, constraint ) |
|
179 } |
|
180 |
|
181 |
|
182 // ----------------------------------------------------------------------------- |
|
183 // HbMarqueeItem::changeEvent |
|
184 // ----------------------------------------------------------------------------- |
|
185 // |
|
186 void HbMarqueeItem::changeEvent( |
|
187 QEvent * event ) |
|
188 { |
|
189 SMC_MOCK_METHOD1( void, QEvent *, event ) |
|
190 } |
|
191 |
|
192 |
|
193 // ----------------------------------------------------------------------------- |
|
194 // HbMarqueeItem::resizeEvent |
|
195 // ----------------------------------------------------------------------------- |
|
196 // |
|
197 void HbMarqueeItem::resizeEvent( |
|
198 QGraphicsSceneResizeEvent * ) |
|
199 { |
|
200 //SMC_MOCK_METHOD1( void, QGraphicsSceneResizeEvent *, event ) |
|
201 } |
|
202 |
|
203 |
|
204 // ----------------------------------------------------------------------------- |
|
205 // HbMarqueeItem::itemChange |
|
206 // ----------------------------------------------------------------------------- |
|
207 // |
|
208 QVariant HbMarqueeItem::itemChange( |
|
209 GraphicsItemChange change, |
|
210 const QVariant & value ) |
|
211 { |
|
212 SMC_MOCK_METHOD2( QVariant, GraphicsItemChange, change, |
|
213 const QVariant &, value ) |
|
214 } |
|
215 |
|
216 |
|
217 // ----------------------------------------------------------------------------- |
|
218 // HbMarqueeItem::HbMarqueeItem |
|
219 // ----------------------------------------------------------------------------- |
|
220 // |
|
221 HbMarqueeItem::HbMarqueeItem( |
|
222 HbMarqueeItemPrivate & dd, |
|
223 QGraphicsItem * parent ) |
|
224 { |
|
225 Q_UNUSED(dd) |
|
226 Q_UNUSED(parent) |
|
227 } |
|
228 |
|
229 |
|