31
|
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"
|
43
|
24 |
#include "OstTraceDefinitions.h"
|
|
25 |
#ifdef OST_TRACE_COMPILER_IN_USE
|
|
26 |
#include "wlanwizardsummaryviewitemTraces.h"
|
|
27 |
#endif
|
|
28 |
|
31
|
29 |
|
|
30 |
/*!
|
|
31 |
\class WlanWizardSummaryListViewItem
|
|
32 |
\brief Implements custom List view for Summary page.
|
43
|
33 |
|
31
|
34 |
HbListWidget does not support directly views where selection is disabled.
|
43
|
35 |
|
31
|
36 |
This implementation removes required operations to disable list selection.
|
|
37 |
*/
|
|
38 |
|
|
39 |
// External function prototypes
|
|
40 |
|
|
41 |
// Local constants
|
|
42 |
|
|
43 |
// ======== LOCAL FUNCTIONS ========
|
|
44 |
|
|
45 |
//
|
|
46 |
|
|
47 |
/*!
|
|
48 |
Constructor.
|
43
|
49 |
|
31
|
50 |
@param [in] parent parent class
|
|
51 |
*/
|
|
52 |
WlanWizardSummaryListViewItem::WlanWizardSummaryListViewItem(
|
|
53 |
QGraphicsItem* parent) :
|
|
54 |
HbListViewItem(parent)
|
|
55 |
{
|
43
|
56 |
OstTraceFunctionEntry0(
|
|
57 |
WLANWIZARDSUMMARYLISTVIEWITEM_WLANWIZARDSUMMARYLISTVIEWITEM_ENTRY );
|
|
58 |
OstTraceFunctionExit0(
|
|
59 |
WLANWIZARDSUMMARYLISTVIEWITEM_WLANWIZARDSUMMARYLISTVIEWITEM_EXIT );
|
31
|
60 |
}
|
|
61 |
|
|
62 |
/*!
|
|
63 |
Destructor.
|
|
64 |
*/
|
|
65 |
WlanWizardSummaryListViewItem::~WlanWizardSummaryListViewItem()
|
|
66 |
{
|
43
|
67 |
OstTraceFunctionEntry0(
|
|
68 |
DUP1_WLANWIZARDSUMMARYLISTVIEWITEM_WLANWIZARDSUMMARYLISTVIEWITEM_ENTRY );
|
|
69 |
OstTraceFunctionExit0(
|
|
70 |
DUP1_WLANWIZARDSUMMARYLISTVIEWITEM_WLANWIZARDSUMMARYLISTVIEWITEM_EXIT );
|
31
|
71 |
}
|
|
72 |
|
|
73 |
/*!
|
|
74 |
See HbListViewItem::updateChildItems().
|
43
|
75 |
|
31
|
76 |
Disables selection.
|
|
77 |
*/
|
|
78 |
void WlanWizardSummaryListViewItem::updateChildItems()
|
|
79 |
{
|
43
|
80 |
OstTraceFunctionEntry0( WLANWIZARDSUMMARYLISTVIEWITEM_UPDATECHILDITEMS_ENTRY );
|
31
|
81 |
HbListViewItem::updateChildItems();
|
43
|
82 |
|
31
|
83 |
ungrabGesture(Qt::TapGesture);
|
43
|
84 |
|
31
|
85 |
GraphicsItemFlags itemFlags = flags();
|
|
86 |
itemFlags &= ~QGraphicsItem::ItemIsFocusable;
|
|
87 |
setFlags(itemFlags);
|
43
|
88 |
OstTraceFunctionExit0( WLANWIZARDSUMMARYLISTVIEWITEM_UPDATECHILDITEMS_EXIT );
|
31
|
89 |
}
|
|
90 |
|
|
91 |
/*!
|
|
92 |
See HbListViewItem::createItem().
|
|
93 |
*/
|
|
94 |
HbAbstractViewItem* WlanWizardSummaryListViewItem::createItem()
|
|
95 |
{
|
43
|
96 |
OstTraceFunctionEntry0( WLANWIZARDSUMMARYLISTVIEWITEM_CREATEITEM_ENTRY );
|
|
97 |
OstTraceFunctionExit0( WLANWIZARDSUMMARYLISTVIEWITEM_CREATEITEM_EXIT );
|
31
|
98 |
return new WlanWizardSummaryListViewItem(*this);
|
|
99 |
}
|