|
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 <QWidget> |
|
19 #include <QStyleOptionGraphicsItem> |
|
20 #include <QPainter> |
|
21 #include <smcmockclassincludes.h> |
|
22 #include "hbframeitem.h" |
|
23 |
|
24 // ============================ MEMBER FUNCTIONS =============================== |
|
25 |
|
26 // ----------------------------------------------------------------------------- |
|
27 // HbFrameItem::HbFrameItem |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 HbFrameItem::HbFrameItem( |
|
31 QGraphicsItem * parent ) |
|
32 { |
|
33 } |
|
34 |
|
35 |
|
36 // ----------------------------------------------------------------------------- |
|
37 // HbFrameItem::HbFrameItem |
|
38 // ----------------------------------------------------------------------------- |
|
39 // |
|
40 HbFrameItem::HbFrameItem( |
|
41 HbFrameDrawer * drawer, |
|
42 QGraphicsItem * parent ) |
|
43 { |
|
44 } |
|
45 |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // HbFrameItem::HbFrameItem |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 HbFrameItem::HbFrameItem( |
|
52 const QString & frameGraphicsName, |
|
53 HbFrameDrawer::FrameType frameGraphicsType, |
|
54 QGraphicsItem * parent ) |
|
55 { |
|
56 } |
|
57 |
|
58 |
|
59 // ----------------------------------------------------------------------------- |
|
60 // HbFrameItem::~HbFrameItem |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 HbFrameItem::~HbFrameItem( ) |
|
64 { |
|
65 } |
|
66 |
|
67 |
|
68 // ----------------------------------------------------------------------------- |
|
69 // HbFrameItem::frameDrawer |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 HbFrameDrawer & HbFrameItem::frameDrawer( ) const |
|
73 { |
|
74 SMC_MOCK_METHOD0( HbFrameDrawer & ) |
|
75 } |
|
76 |
|
77 |
|
78 // ----------------------------------------------------------------------------- |
|
79 // HbFrameItem::setFrameDrawer |
|
80 // ----------------------------------------------------------------------------- |
|
81 // |
|
82 void HbFrameItem::setFrameDrawer( |
|
83 HbFrameDrawer * drawer ) |
|
84 { |
|
85 SMC_MOCK_METHOD1( void, HbFrameDrawer *, drawer ) |
|
86 } |
|
87 |
|
88 |
|
89 // ----------------------------------------------------------------------------- |
|
90 // HbFrameItem::paint |
|
91 // ----------------------------------------------------------------------------- |
|
92 // |
|
93 void HbFrameItem::paint( |
|
94 QPainter * painter, |
|
95 const QStyleOptionGraphicsItem * option, |
|
96 QWidget * widget ) |
|
97 { |
|
98 SMC_MOCK_METHOD3( void, QPainter *, painter, |
|
99 const QStyleOptionGraphicsItem *, option, |
|
100 QWidget *, widget ) |
|
101 } |
|
102 |
|
103 |
|
104 // ----------------------------------------------------------------------------- |
|
105 // HbFrameItem::changeEvent |
|
106 // ----------------------------------------------------------------------------- |
|
107 // |
|
108 void HbFrameItem::changeEvent( |
|
109 QEvent * event ) |
|
110 { |
|
111 SMC_MOCK_METHOD1( void, QEvent *, event ) |
|
112 } |
|
113 |
|
114 |
|
115 // ----------------------------------------------------------------------------- |
|
116 // HbFrameItem::sizeHint |
|
117 // ----------------------------------------------------------------------------- |
|
118 // |
|
119 QSizeF HbFrameItem::sizeHint( |
|
120 Qt::SizeHint which, |
|
121 const QSizeF & constraint ) const |
|
122 { |
|
123 SMC_MOCK_METHOD2( QSizeF, Qt::SizeHint, which, |
|
124 const QSizeF &, constraint ) |
|
125 } |
|
126 |
|
127 |