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: Day view control of calendar |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CALENDAYHOURELEMENT_H |
|
19 #define CALENDAYHOURELEMENT_H |
|
20 |
|
21 //System includes |
|
22 #include <QTime> |
|
23 #include <QPen> |
|
24 #include <hbwidget.h> |
|
25 |
|
26 //User includes |
|
27 |
|
28 |
|
29 //Forward declarations |
|
30 class CalenDayHourScrollArea; |
|
31 |
|
32 class CalenDayHourElement : public HbWidget |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Constructor. |
|
40 */ |
|
41 CalenDayHourElement(const QTime &time, QGraphicsItem *parent=0); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CalenDayHourElement(); |
|
47 |
|
48 /** |
|
49 * |
|
50 */ |
|
51 void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget); |
|
52 |
|
53 private: |
|
54 |
|
55 CalenDayHourScrollArea *mContainer; |
|
56 QTime mHour; |
|
57 QColor mHourLineColor; |
|
58 qreal mUnitInPixels; |
|
59 }; |
|
60 |
|
61 #endif // CALENDAYHOURELEMENT_H |