equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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: Custom list item implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CUSTOMVIEWITEM_H |
|
19 #define CUSTOMVIEWITEM_H |
|
20 |
|
21 #include <hblistviewitem.h> |
|
22 #include <hbpushbutton.h> |
|
23 #include <hbview.h> |
|
24 #include <hbmenu.h> |
|
25 #include <HbMainWindow.h> |
|
26 #include <hbaction.h> |
|
27 |
|
28 class DmAdvancedView; |
|
29 const qreal topAndBottomMargin = 0; |
|
30 const qreal leftMargin = 40; |
|
31 const qreal rightMargin = 50; |
|
32 |
|
33 class CustomViewItem : public HbListViewItem |
|
34 { |
|
35 Q_OBJECT |
|
36 public: |
|
37 enum |
|
38 { |
|
39 ItemType = Hb::ItemType_Last + 1001 |
|
40 }; |
|
41 CustomViewItem(DmAdvancedView* serversview, QGraphicsItem * parent = 0); |
|
42 ~CustomViewItem(); |
|
43 int type() const; |
|
44 bool canSetModelIndex(const QModelIndex &index); |
|
45 HbAbstractViewItem * createItem(); |
|
46 void updateChildItems(); |
|
47 private: |
|
48 HbPushButton *mButton; |
|
49 DmAdvancedView* callBackView; |
|
50 }; |
|
51 |
|
52 #endif |
|
53 |