equal
deleted
inserted
replaced
|
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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef GLXDETAILSCUSTOMICON_H |
|
19 #define GLXDETAILSCUSTOMICON_H |
|
20 |
|
21 #include <hbwidget.h> |
|
22 class HbIconItem; |
|
23 class HbIcon; |
|
24 |
|
25 class GlxDetailsCustomIcon : public HbWidget |
|
26 { |
|
27 Q_OBJECT |
|
28 |
|
29 public: |
|
30 GlxDetailsCustomIcon(QGraphicsItem *parent); |
|
31 ~GlxDetailsCustomIcon(); |
|
32 /* |
|
33 * Sets the Geometry of the Custom Widget |
|
34 */ |
|
35 void setItemGeometry(QRect screenRect); |
|
36 |
|
37 /* |
|
38 * Sets the Size of the Favourite Icon |
|
39 */ |
|
40 void setItemSize(const QSizeF &size); |
|
41 |
|
42 /* |
|
43 * Sets the Position of the Favourite Icon |
|
44 */ |
|
45 void setItemPos(qreal ax, qreal ay); |
|
46 |
|
47 /* |
|
48 * Sets the Icon of Favourite IconItem. |
|
49 */ |
|
50 void setItemIcon(const HbIcon &icon); |
|
51 |
|
52 protected: |
|
53 void mousePressEvent(QGraphicsSceneMouseEvent *event); |
|
54 void mouseReleaseEvent (QGraphicsSceneMouseEvent *event); |
|
55 |
|
56 signals : |
|
57 void updateFavourites(); |
|
58 |
|
59 private: |
|
60 HbIconItem *mFavIcon; |
|
61 }; |
|
62 |
|
63 #endif // GLXDETAILSCUSTOMICON_H |