66 |
68 |
67 // ----------------------------------------------------------------------------- |
69 // ----------------------------------------------------------------------------- |
68 // InfoWidgetLayoutManager::layoutInfoDisplay |
70 // InfoWidgetLayoutManager::layoutInfoDisplay |
69 // ----------------------------------------------------------------------------- |
71 // ----------------------------------------------------------------------------- |
70 // |
72 // |
71 QGraphicsLayout * InfoWidgetLayoutManager::layoutInfoDisplay( ) |
73 QGraphicsWidget * InfoWidgetLayoutManager::layoutInfoDisplay( ) |
72 { |
74 { |
73 SMC_MOCK_METHOD0( QGraphicsLayout * ) |
75 SMC_MOCK_METHOD0( QGraphicsWidget * ) |
74 } |
76 } |
75 |
77 |
76 |
78 |
77 // ----------------------------------------------------------------------------- |
79 // ----------------------------------------------------------------------------- |
78 // InfoWidgetLayoutManager::layoutSettingsDialog |
80 // InfoWidgetLayoutManager::layoutSettingsDialog |
79 // ----------------------------------------------------------------------------- |
81 // ----------------------------------------------------------------------------- |
80 // |
82 // |
81 QGraphicsLayout * InfoWidgetLayoutManager::layoutSettingsDialog( ) |
83 QGraphicsWidget * InfoWidgetLayoutManager::layoutSettingsDialog( ) |
82 { |
84 { |
83 SMC_MOCK_METHOD0( QGraphicsLayout * ) |
85 SMC_MOCK_METHOD0( QGraphicsWidget * ) |
84 } |
86 } |
85 |
87 |
86 |
88 |
87 // ----------------------------------------------------------------------------- |
89 // ----------------------------------------------------------------------------- |
88 // InfoWidgetLayoutManager::widgetRoles |
90 // InfoWidgetLayoutManager::widgetRoles |
99 |
101 |
100 // ----------------------------------------------------------------------------- |
102 // ----------------------------------------------------------------------------- |
101 // InfoWidgetLayoutManager::loadWidgets |
103 // InfoWidgetLayoutManager::loadWidgets |
102 // ----------------------------------------------------------------------------- |
104 // ----------------------------------------------------------------------------- |
103 // |
105 // |
104 bool InfoWidgetLayoutManager::loadWidgets( |
106 bool InfoWidgetLayoutManager::loadWidgets( |
105 const DisplayRole displayRole, |
|
106 const QList<LayoutItemRole> &displayWidgets, |
|
107 QMap<LayoutItemRole, QGraphicsWidget *> &widgetMap) |
|
108 { |
|
109 typedef QMap <LayoutItemRole, QGraphicsWidget *> & TYPE3; |
|
110 SMC_MOCK_METHOD3( bool, const DisplayRole, displayRole, |
|
111 const QList<LayoutItemRole> &, displayWidgets, |
|
112 TYPE3, widgetMap ) |
|
113 } |
|
114 |
|
115 // ----------------------------------------------------------------------------- |
|
116 // InfoWidgetLayoutManager::reloadWidgets |
|
117 // ----------------------------------------------------------------------------- |
|
118 // |
|
119 bool InfoWidgetLayoutManager::reloadWidgets( |
|
120 const DisplayRole displayRole ) |
107 const DisplayRole displayRole ) |
121 { |
108 { |
122 SMC_MOCK_METHOD1( bool, const DisplayRole, displayRole ) |
109 SMC_MOCK_METHOD1( bool, const DisplayRole, displayRole ) |
123 } |
110 } |
124 |
111 |
217 SMC_MOCK_METHOD0( void ) |
204 SMC_MOCK_METHOD0( void ) |
218 } |
205 } |
219 |
206 |
220 |
207 |
221 // ----------------------------------------------------------------------------- |
208 // ----------------------------------------------------------------------------- |
222 // InfoWidgetLayoutManager::layoutRows |
|
223 // ----------------------------------------------------------------------------- |
|
224 // |
|
225 int InfoWidgetLayoutManager::layoutRows( ) const |
|
226 { |
|
227 SMC_MOCK_METHOD0( int ) |
|
228 } |
|
229 |
|
230 |
|
231 // ----------------------------------------------------------------------------- |
|
232 // InfoWidgetLayoutManager::setLayoutRows |
|
233 // ----------------------------------------------------------------------------- |
|
234 // |
|
235 void InfoWidgetLayoutManager::setLayoutRows( |
|
236 int rows ) |
|
237 { |
|
238 SMC_MOCK_METHOD1( void, int, rows ) |
|
239 } |
|
240 |
|
241 |
|
242 // ----------------------------------------------------------------------------- |
|
243 // InfoWidgetLayoutManager::layoutRowHeight |
209 // InfoWidgetLayoutManager::layoutRowHeight |
244 // ----------------------------------------------------------------------------- |
210 // ----------------------------------------------------------------------------- |
245 // |
211 // |
246 qreal InfoWidgetLayoutManager::layoutRowHeight( ) |
212 qreal InfoWidgetLayoutManager::layoutRowHeight( ) |
247 { |
213 { |
263 QRectF, rect ) |
229 QRectF, rect ) |
264 } |
230 } |
265 |
231 |
266 |
232 |
267 // ----------------------------------------------------------------------------- |
233 // ----------------------------------------------------------------------------- |
|
234 // InfoWidgetLayoutManager::loadWidgets |
|
235 // ----------------------------------------------------------------------------- |
|
236 // |
|
237 bool InfoWidgetLayoutManager::loadWidgets( |
|
238 const DisplayRole displayRole, |
|
239 const QList<LayoutItemRole> & displayWidgets, |
|
240 QMap <LayoutItemRole,QGraphicsWidget *> & widgetMap ) |
|
241 { |
|
242 //SMC_MOCK_METHOD3( bool, const DisplayRole, displayRole, |
|
243 // const QList<LayoutItemRole> &, displayWidgets, |
|
244 // QMap<LayoutItemRole,QGraphicsWidget *> &, widgetMap ) |
|
245 } |
|
246 |
|
247 |
|
248 // ----------------------------------------------------------------------------- |
268 // InfoWidgetDocumentLoader::createObject |
249 // InfoWidgetDocumentLoader::createObject |
269 // ----------------------------------------------------------------------------- |
250 // ----------------------------------------------------------------------------- |
270 // |
251 // |
271 QObject * InfoWidgetDocumentLoader::createObject( |
252 QObject * InfoWidgetDocumentLoader::createObject( |
272 const QString & type, |
253 const QString & type, |