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 CALENDAYEVENTSPANE_H_ |
|
19 #define CALENDAYEVENTSPANE_H_ |
|
20 |
|
21 // System includes |
|
22 #include <QPen> |
|
23 #include <HbWidget> |
|
24 |
|
25 class CalenDayEventsPane : public HbWidget |
|
26 { |
|
27 public: |
|
28 CalenDayEventsPane(HbWidget *parent=0); |
|
29 virtual ~CalenDayEventsPane(); |
|
30 |
|
31 void drawTopLine(bool drawTopLine = false); |
|
32 |
|
33 protected: |
|
34 void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, |
|
35 QWidget * widget); |
|
36 |
|
37 private: |
|
38 QColor mHourLineColor; |
|
39 qreal mUnitInPixels; |
|
40 QPen mCustomDashedPen; |
|
41 bool mDrawTopLine; //!< Flag indicates if top line should be drawn |
|
42 }; |
|
43 |
|
44 #endif /* CALENDAYEVENTSPANE_H_ */ |