calendarui/views/dayview/tsrc/unittests/unittest_calendayview/calendaycontentscrollarea.h
changeset 45 b6db4fd4947b
child 81 ce92091cbd61
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
       
     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:  CalenDayContentScrollArea class definition.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CALENDAYCONTENTSCROLLAREA_H_
       
    19 #define CALENDAYCONTENTSCROLLAREA_H_
       
    20 
       
    21 // System includes
       
    22 #include <hbscrollarea.h>
       
    23 
       
    24 #include "calendaycommonheaders.h"
       
    25 
       
    26 // Class declaration
       
    27 class CalenDayContentScrollArea : public HbScrollArea
       
    28 	{
       
    29 Q_OBJECT
       
    30 
       
    31 public:
       
    32 	CalenDayContentScrollArea(QGraphicsItem *parent = 0)
       
    33 		{
       
    34 		Q_UNUSED(parent);
       
    35 		}
       
    36 	virtual ~CalenDayContentScrollArea()
       
    37 		{
       
    38 		}
       
    39 
       
    40 	signals:
       
    41 	void scrollAreaMoveStarted(CalenScrollDirection scrollTo);
       
    42 	void scrollAreaMoveFinished(CalenScrollDirection scrollTo);
       
    43 
       
    44 public slots:
       
    45 	void scrollToMiddleWidget()
       
    46 		{
       
    47 		}
       
    48 
       
    49 protected:
       
    50 	bool scrollByAmount(const QPointF &delta)
       
    51 		{
       
    52 		Q_UNUSED(delta);
       
    53 		return false;
       
    54 		}
       
    55 
       
    56 	void gestureEvent(QGestureEvent *event)
       
    57 		{
       
    58 		Q_UNUSED(event);
       
    59 		}
       
    60 	bool eventFilter(QObject *obj, QEvent *event)
       
    61 		{
       
    62 		Q_UNUSED(obj);Q_UNUSED(event);
       
    63 		return false;
       
    64 		}
       
    65 	bool event(QEvent *e)
       
    66 		{
       
    67 		Q_UNUSED(e);
       
    68 		return false;
       
    69 		}
       
    70 	};
       
    71 
       
    72 #endif /* CALENDAYCONTENTSCROLLAREA_H_ */