|
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: HgMediawall stub for testing mpcollectioncontainers |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "hgmediawall.h" |
|
19 |
|
20 |
|
21 /*! |
|
22 Constructs the mediawall widget stub. |
|
23 */ |
|
24 HgWidget::HgWidget( QGraphicsItem *parent ) |
|
25 { |
|
26 Q_UNUSED(parent); |
|
27 } |
|
28 |
|
29 /*! |
|
30 Destructs the mediawall widget stub. |
|
31 */ |
|
32 HgWidget::~HgWidget() |
|
33 { |
|
34 } |
|
35 |
|
36 /*! |
|
37 Stub function |
|
38 */ |
|
39 void HgWidget::setScrollBarPolicy( ScrollBarPolicy policy ) |
|
40 { |
|
41 Q_UNUSED(policy); |
|
42 } |
|
43 |
|
44 /*! |
|
45 Stub function |
|
46 */ |
|
47 void HgWidget::setModel( QAbstractItemModel *model ) |
|
48 { |
|
49 Q_UNUSED(model); |
|
50 } |
|
51 |
|
52 /*! |
|
53 Stub function |
|
54 */ |
|
55 void HgWidget::scrollTo( const QModelIndex &index ) |
|
56 { |
|
57 Q_UNUSED(index); |
|
58 } |
|
59 |
|
60 /*! |
|
61 Stub function |
|
62 */ |
|
63 QModelIndex HgWidget::currentIndex() const |
|
64 { |
|
65 return QModelIndex(); |
|
66 } |
|
67 |
|
68 void HgWidget::setItemSize(const QSizeF& size) |
|
69 { |
|
70 Q_UNUSED(size); |
|
71 } |
|
72 |
|
73 QSizeF HgWidget::itemSize() const |
|
74 { |
|
75 return QSizeF(); |
|
76 } |
|
77 |
|
78 void HgWidget::setDefaultImage(QImage defaultImage) |
|
79 { |
|
80 Q_UNUSED(defaultImage); |
|
81 } |
|
82 |
|
83 void HgWidget::setIndexFeedbackPolicy( IndexFeedbackPolicy policy) |
|
84 { |
|
85 Q_UNUSED(policy); |
|
86 } |
|
87 HbScrollBar *HgWidget::scrollBar() const |
|
88 { |
|
89 return new HbScrollBar(); |
|
90 } |
|
91 bool HgWidget::getItemOutline(const QModelIndex& index, QPolygonF& points) |
|
92 { |
|
93 Q_UNUSED(index); |
|
94 Q_UNUSED(points); |
|
95 return false; |
|
96 } |
|
97 |
|
98 //=========================================================================== |
|
99 //=========================================================================== |
|
100 |
|
101 /*! |
|
102 Constructs the mediawall widget stub. |
|
103 */ |
|
104 HgMediawall::HgMediawall( QGraphicsItem *parent ) |
|
105 { |
|
106 Q_UNUSED(parent); |
|
107 mReflectionEnabled = true; |
|
108 } |
|
109 |
|
110 /*! |
|
111 Destructs the mediawall widget stub. |
|
112 */ |
|
113 HgMediawall::~HgMediawall() |
|
114 { |
|
115 } |
|
116 |
|
117 /*! |
|
118 Stub function |
|
119 */ |
|
120 void HgMediawall::setTitlePosition( LabelPosition position ) |
|
121 { |
|
122 Q_UNUSED(position); |
|
123 } |
|
124 |
|
125 /*! |
|
126 Stub function |
|
127 */ |
|
128 void HgMediawall::setDescriptionPosition( LabelPosition position ) |
|
129 { |
|
130 Q_UNUSED(position); |
|
131 } |
|
132 |
|
133 /*! |
|
134 Stub function |
|
135 */ |
|
136 void HgMediawall::setTitleFontSpec( const HbFontSpec &fontSpec ) |
|
137 { |
|
138 Q_UNUSED(fontSpec); |
|
139 } |
|
140 |
|
141 /*! |
|
142 Stub function |
|
143 */ |
|
144 void HgMediawall::setDescriptionFontSpec( const HbFontSpec &fontSpec ) |
|
145 { |
|
146 Q_UNUSED(fontSpec); |
|
147 } |
|
148 |
|
149 /*! |
|
150 Stub function |
|
151 */ |
|
152 void HgMediawall::enableReflections( bool enabled ) |
|
153 { |
|
154 mReflectionEnabled = enabled; |
|
155 } |
|
156 |
|
157 /*! |
|
158 Stub function |
|
159 */ |
|
160 bool HgMediawall::reflectionsEnabled() const |
|
161 { |
|
162 return mReflectionEnabled; |
|
163 } |
|
164 |