equal
deleted
inserted
replaced
|
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: CalenPluginLabel implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 // System includes |
|
19 |
|
20 // User includes |
|
21 #include "calenservices.h" |
|
22 #include "calenpluginlabel.h" |
|
23 /*! |
|
24 \class CalenPluginLabel |
|
25 |
|
26 Class to show plugin information on Label |
|
27 */ |
|
28 |
|
29 /*! |
|
30 constructor |
|
31 */ |
|
32 CalenPluginLabel::CalenPluginLabel(MCalenServices& services, |
|
33 QGraphicsItem* parent) : |
|
34 HbLabel(parent),mServices(services) |
|
35 { |
|
36 setAlignment(Qt::AlignCenter); |
|
37 setFontSpec(HbFontSpec(HbFontSpec::Secondary)); |
|
38 setPlainText("Reg plugin"); |
|
39 } |
|
40 |
|
41 /*! |
|
42 Destructor |
|
43 */ |
|
44 CalenPluginLabel::~CalenPluginLabel() |
|
45 { |
|
46 } |
|
47 |
|
48 /*! |
|
49 To handle mouse press event. |
|
50 \sa QGraphicsItem |
|
51 */ |
|
52 void CalenPluginLabel::mousePressEvent(QGraphicsSceneMouseEvent* event) |
|
53 { |
|
54 Q_UNUSED(event); |
|
55 |
|
56 mServices.IssueCommandL(ECalenRegionalPluginTapEvent); |
|
57 } |
|
58 |
|
59 // End of file --Don't remove this. |