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 |
|
18 #include "unifiedviewerplugin.h" |
|
19 |
|
20 // INCLUDES |
|
21 #include <HbStyle> |
|
22 #include <QtDebug> |
|
23 |
|
24 //--------------------------------------------------------------- |
|
25 // UnifiedViewerPlugin::primitiveCount |
|
26 // @see header file |
|
27 //--------------------------------------------------------------- |
|
28 int UnifiedViewerPlugin::primitiveCount() const |
|
29 { |
|
30 // Return non zero count. |
|
31 return 1; |
|
32 } |
|
33 |
|
34 //--------------------------------------------------------------- |
|
35 // UnifiedViewerPlugin::createPrimitive |
|
36 // @see header file |
|
37 //--------------------------------------------------------------- |
|
38 QGraphicsItem* UnifiedViewerPlugin::createPrimitive( |
|
39 HbStyle::Primitive primitive, QGraphicsItem *parent) const |
|
40 { |
|
41 Q_UNUSED(primitive); |
|
42 Q_UNUSED(parent); |
|
43 return NULL; |
|
44 } |
|
45 |
|
46 //--------------------------------------------------------------- |
|
47 // UnifiedViewerPlugin::updatePrimitive |
|
48 // @see header file |
|
49 //--------------------------------------------------------------- |
|
50 void UnifiedViewerPlugin::updatePrimitive(QGraphicsItem *item, |
|
51 HbStyle::Primitive primitive, const QStyleOption *option) const |
|
52 { |
|
53 Q_UNUSED(item); |
|
54 Q_UNUSED(primitive); |
|
55 Q_UNUSED(option); |
|
56 } |
|
57 |
|
58 //--------------------------------------------------------------- |
|
59 // UnifiedViewerPlugin::layoutPath |
|
60 // @see header file |
|
61 //--------------------------------------------------------------- |
|
62 QString UnifiedViewerPlugin::layoutPath() const |
|
63 { |
|
64 qDebug() << "UnifiedViewerPlugin::layoutPath"; |
|
65 |
|
66 QString path = QString(":/"); |
|
67 |
|
68 qDebug() << "layout plugin resources:" << path; |
|
69 return path; |
|
70 } |
|
71 |
|
72 Q_EXPORT_PLUGIN2(UnifiedViewerPlugin, UnifiedViewerPlugin) |
|
73 |
|
74 // EOF |
|