|
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 } |
|
27 |
|
28 /*! |
|
29 Destructor |
|
30 */ |
|
31 NmBaseViewScrollArea::~NmBaseViewScrollArea() |
|
32 { |
|
33 } |
|
34 |
|
35 /*! |
|
36 Scroll area mouse press event handling. Mouse press event is forwarded |
|
37 to scroll area base class and web kit for link handling |
|
38 */ |
|
39 void NmBaseViewScrollArea::mousePressEvent(QGraphicsSceneMouseEvent *event) |
|
40 { |
|
41 if (event){ |
|
42 emit handleMousePressEvent(event); |
|
43 HbScrollArea::mousePressEvent(event); |
|
44 } |
|
45 } |
|
46 |
|
47 /*! |
|
48 Scroll area mouse release event handling. Mouse release event is forwarded |
|
49 to scroll area base class and web kit for link handling |
|
50 */ |
|
51 void NmBaseViewScrollArea::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) |
|
52 { |
|
53 if (event){ |
|
54 emit handleMouseReleaseEvent(event); |
|
55 HbScrollArea::mouseReleaseEvent(event); |
|
56 } |
|
57 } |
|
58 |
|
59 /*! |
|
60 Scroll area mouse double click event handling. Double click is forwarded |
|
61 to scroll area base class and web kit |
|
62 */ |
|
63 void NmBaseViewScrollArea::mouseMoveEvent(QGraphicsSceneMouseEvent *event) |
|
64 { |
|
65 if (event){ |
|
66 emit handleMouseMoveEvent(event); |
|
67 HbScrollArea::mouseMoveEvent(event); |
|
68 } |
|
69 } |
|
70 |
|
71 /*! |
|
72 Scroll area long press gesture event handling. |
|
73 */ |
|
74 void NmBaseViewScrollArea::longPressGesture(const QPointF &point) |
|
75 { |
|
76 emit handleLongPressGesture(point); |
|
77 } |
|
78 |