|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "nmailuiwidgetsheaders.h" |
|
19 |
|
20 /*! |
|
21 Constructor |
|
22 */ |
|
23 NmBaseViewScrollArea::NmBaseViewScrollArea(QGraphicsItem *parentView) : |
|
24 HbScrollArea(parentView) |
|
25 { |
|
26 NM_FUNCTION; |
|
27 } |
|
28 |
|
29 /*! |
|
30 Destructor |
|
31 */ |
|
32 NmBaseViewScrollArea::~NmBaseViewScrollArea() |
|
33 { |
|
34 NM_FUNCTION; |
|
35 } |
|
36 |
|
37 /*! |
|
38 Scroll area mouse press event handling. Mouse press event is forwarded |
|
39 to scroll area base class and web kit for link handling |
|
40 */ |
|
41 void NmBaseViewScrollArea::mousePressEvent(QGraphicsSceneMouseEvent *event) |
|
42 { |
|
43 NM_FUNCTION; |
|
44 |
|
45 if (event){ |
|
46 emit handleMousePressEvent(event); |
|
47 HbScrollArea::mousePressEvent(event); |
|
48 } |
|
49 } |
|
50 |
|
51 /*! |
|
52 Scroll area mouse release event handling. Mouse release event is forwarded |
|
53 to scroll area base class and web kit for link handling |
|
54 */ |
|
55 void NmBaseViewScrollArea::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) |
|
56 { |
|
57 NM_FUNCTION; |
|
58 |
|
59 if (event){ |
|
60 emit handleMouseReleaseEvent(event); |
|
61 HbScrollArea::mouseReleaseEvent(event); |
|
62 } |
|
63 } |
|
64 |
|
65 /*! |
|
66 Scroll area mouse double click event handling. Double click is forwarded |
|
67 to scroll area base class and web kit |
|
68 */ |
|
69 void NmBaseViewScrollArea::mouseMoveEvent(QGraphicsSceneMouseEvent *event) |
|
70 { |
|
71 NM_FUNCTION; |
|
72 |
|
73 if (event){ |
|
74 emit handleMouseMoveEvent(event); |
|
75 HbScrollArea::mouseMoveEvent(event); |
|
76 } |
|
77 } |
|
78 |
|
79 /*! |
|
80 Scroll area long press gesture event handling. |
|
81 */ |
|
82 void NmBaseViewScrollArea::longPressGesture(const QPointF &point) |
|
83 { |
|
84 NM_FUNCTION; |
|
85 |
|
86 emit handleLongPressGesture(point); |
|
87 } |
|
88 |