62
|
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: List View Item.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef CUSTOMLISTVIEWITEM_H
|
|
19 |
#define CUSTOMLISTVIEWITEM_H
|
|
20 |
|
|
21 |
#include <hblistviewitem.h>
|
71
|
22 |
#include <HbProgressBar>
|
62
|
23 |
|
|
24 |
#include "hsmenustates_global.h"
|
|
25 |
|
71
|
26 |
// TODO: this is only temporary class for show progress bar.
|
|
27 |
// It should be remove when fix from orbit will be in official platfrom.
|
|
28 |
class HsProgressBar: public HbProgressBar {
|
|
29 |
public:
|
|
30 |
HsProgressBar(QGraphicsItem *parent=0):HbProgressBar(parent) {}
|
|
31 |
|
|
32 |
protected:
|
|
33 |
void paint ( QPainter * painter,
|
|
34 |
const QStyleOptionGraphicsItem * option,
|
|
35 |
QWidget * widget = 0 );
|
|
36 |
};
|
62
|
37 |
|
|
38 |
HS_STATES_TEST_CLASS(MenuStatesTest)
|
|
39 |
|
|
40 |
class HsListViewItem : public HbListViewItem
|
|
41 |
{
|
|
42 |
Q_OBJECT
|
|
43 |
public:
|
|
44 |
|
|
45 |
explicit HsListViewItem(QGraphicsItem* parent=0);
|
|
46 |
virtual ~HsListViewItem();
|
71
|
47 |
|
62
|
48 |
virtual HbAbstractViewItem* createItem();
|
|
49 |
virtual void updateChildItems();
|
|
50 |
|
71
|
51 |
protected:
|
62
|
52 |
virtual void polish(HbStyleParameters& params);
|
|
53 |
|
|
54 |
private:
|
71
|
55 |
HsProgressBar *progress;
|
62
|
56 |
bool isProgress;
|
|
57 |
HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
|
|
58 |
};
|
|
59 |
|
71
|
60 |
|
62
|
61 |
#endif // CUSTOMLISTVIEWITEM_H
|