|
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: |
|
15 * Wlan Wizard Page: Summary: List view item |
|
16 * |
|
17 */ |
|
18 |
|
19 // System includes |
|
20 |
|
21 // User includes |
|
22 |
|
23 #include "wlanwizardsummaryviewitem.h" |
|
24 |
|
25 /*! |
|
26 \class WlanWizardSummaryListViewItem |
|
27 \brief Implements custom List view for Summary page. |
|
28 |
|
29 HbListWidget does not support directly views where selection is disabled. |
|
30 |
|
31 This implementation removes required operations to disable list selection. |
|
32 */ |
|
33 |
|
34 // External function prototypes |
|
35 |
|
36 // Local constants |
|
37 |
|
38 // ======== LOCAL FUNCTIONS ======== |
|
39 |
|
40 // |
|
41 |
|
42 /*! |
|
43 Constructor. |
|
44 |
|
45 @param [in] parent parent class |
|
46 */ |
|
47 WlanWizardSummaryListViewItem::WlanWizardSummaryListViewItem( |
|
48 QGraphicsItem* parent) : |
|
49 HbListViewItem(parent) |
|
50 { |
|
51 } |
|
52 |
|
53 /*! |
|
54 Destructor. |
|
55 */ |
|
56 WlanWizardSummaryListViewItem::~WlanWizardSummaryListViewItem() |
|
57 { |
|
58 } |
|
59 |
|
60 /*! |
|
61 See HbListViewItem::updateChildItems(). |
|
62 |
|
63 Disables selection. |
|
64 */ |
|
65 void WlanWizardSummaryListViewItem::updateChildItems() |
|
66 { |
|
67 HbListViewItem::updateChildItems(); |
|
68 |
|
69 ungrabGesture(Qt::TapGesture); |
|
70 |
|
71 GraphicsItemFlags itemFlags = flags(); |
|
72 itemFlags &= ~QGraphicsItem::ItemIsFocusable; |
|
73 setFlags(itemFlags); |
|
74 } |
|
75 |
|
76 /*! |
|
77 See HbListViewItem::createItem(). |
|
78 */ |
|
79 HbAbstractViewItem* WlanWizardSummaryListViewItem::createItem() |
|
80 { |
|
81 return new WlanWizardSummaryListViewItem(*this); |
|
82 } |