|
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 |
|
69 //=========================================================================== |
|
70 //=========================================================================== |
|
71 |
|
72 /*! |
|
73 Constructs the mediawall widget stub. |
|
74 */ |
|
75 HgMediawall::HgMediawall( QGraphicsItem *parent ) |
|
76 { |
|
77 Q_UNUSED(parent); |
|
78 mReflectionEnabled = true; |
|
79 } |
|
80 |
|
81 /*! |
|
82 Destructs the mediawall widget stub. |
|
83 */ |
|
84 HgMediawall::~HgMediawall() |
|
85 { |
|
86 } |
|
87 |
|
88 /*! |
|
89 Stub function |
|
90 */ |
|
91 void HgMediawall::setTitlePosition( LabelPosition position ) |
|
92 { |
|
93 Q_UNUSED(position); |
|
94 } |
|
95 |
|
96 /*! |
|
97 Stub function |
|
98 */ |
|
99 void HgMediawall::setDescriptionPosition( LabelPosition position ) |
|
100 { |
|
101 Q_UNUSED(position); |
|
102 } |
|
103 |
|
104 /*! |
|
105 Stub function |
|
106 */ |
|
107 void HgMediawall::setTitleFontSpec( const HbFontSpec &fontSpec ) |
|
108 { |
|
109 Q_UNUSED(fontSpec); |
|
110 } |
|
111 |
|
112 /*! |
|
113 Stub function |
|
114 */ |
|
115 void HgMediawall::setDescriptionFontSpec( const HbFontSpec &fontSpec ) |
|
116 { |
|
117 Q_UNUSED(fontSpec); |
|
118 } |
|
119 |
|
120 /*! |
|
121 Stub function |
|
122 */ |
|
123 void HgMediawall::enableReflections( bool enabled ) |
|
124 { |
|
125 mReflectionEnabled = enabled; |
|
126 } |
|
127 |
|
128 /*! |
|
129 Stub function |
|
130 */ |
|
131 bool HgMediawall::reflectionsEnabled() const |
|
132 { |
|
133 return mReflectionEnabled; |
|
134 } |
|
135 |