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 GLXDETAILSICON_H |
|
19 #define GLXDETAILSICON_H |
|
20 |
|
21 #include <hbwidget.h> |
|
22 |
|
23 |
|
24 #ifdef BUILD_DETAILSCUSTOM |
|
25 #define MY_EXPORT Q_DECL_EXPORT |
|
26 #else |
|
27 #define MY_EXPORT Q_DECL_IMPORT |
|
28 #endif |
|
29 |
|
30 class HbIconItem; |
|
31 class HbIcon; |
|
32 |
|
33 class MY_EXPORT GlxDetailsIcon : public HbWidget |
|
34 { |
|
35 Q_OBJECT |
|
36 |
|
37 public: |
|
38 GlxDetailsIcon(QGraphicsItem *parent = NULL); |
|
39 ~GlxDetailsIcon(); |
|
40 |
|
41 /* |
|
42 * Sets the Icon of Favourite IconItem. |
|
43 */ |
|
44 void setItemIcon(const HbIcon &icon); |
|
45 |
|
46 protected: |
|
47 void mousePressEvent(QGraphicsSceneMouseEvent *event); |
|
48 void mouseReleaseEvent (QGraphicsSceneMouseEvent *event); |
|
49 |
|
50 signals : |
|
51 void updateFavourites(); |
|
52 |
|
53 private: |
|
54 HbIconItem *mFavIcon; |
|
55 }; |
|
56 |
|
57 #endif // GLXDETAILSICON_H |