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: Class for handling the background scrollarea of the |
|
15 * mail editor and viewer |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef NMBASEVIEWSCROLLAREA_H_ |
|
20 #define NMBASEVIEWSCROLLAREA_H_ |
|
21 |
|
22 #include <hbscrollarea.h> |
|
23 #include "nmailuiwidgetsdef.h" |
|
24 |
|
25 class QGraphicsItem; |
|
26 |
|
27 class NMAILUIWIDGETS_EXPORT NmBaseViewScrollArea : public HbScrollArea |
|
28 { |
|
29 Q_OBJECT |
|
30 public: |
|
31 NmBaseViewScrollArea(QGraphicsItem *parentView=0); |
|
32 virtual ~NmBaseViewScrollArea(); |
|
33 |
|
34 signals: |
|
35 void handleMousePressEvent(QGraphicsSceneMouseEvent *event); |
|
36 void handleMouseReleaseEvent(QGraphicsSceneMouseEvent *event); |
|
37 void handleMouseMoveEvent(QGraphicsSceneMouseEvent *event); |
|
38 void handleLongPressGesture(const QPointF &point); |
|
39 |
|
40 public slots: |
|
41 void mousePressEvent(QGraphicsSceneMouseEvent *event); |
|
42 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); |
|
43 void mouseMoveEvent(QGraphicsSceneMouseEvent *event); |
|
44 |
|
45 protected: |
|
46 void longPressGesture(const QPointF &point); |
|
47 }; |
|
48 |
|
49 |
|
50 #endif /* NMBASEVIEWSCROLLAREA_H_ */ |