diff -r fc7b30ed2058 -r 05bc53fe583b connectionmonitoring/connectionview/inc/scrollareawidget.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/connectionmonitoring/connectionview/inc/scrollareawidget.h Tue Aug 31 15:35:44 2010 +0300 @@ -0,0 +1,45 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef SCROLLAREAWIDGET_H_ +#define SCROLLAREAWIDGET_H_ + +#include +#include +#include + +QTM_USE_NAMESPACE + +class ScrollAreaWidget: public QGraphicsWidget +{ + Q_OBJECT + +public: + /* Constructor */ + ScrollAreaWidget(QGraphicsItem *parent = 0); + + /* Destructor */ + ~ScrollAreaWidget(); + + /* + * Function to filter all the resizing events to get the widget to + * resize itself when switched to landscape and back + */ + bool eventFilter(QObject *object, QEvent *event); +}; + +#endif /* SCROLLAREAWIDGET_H_ */