connectionmonitoring/connectionview/inc/scrollareawidget.h
changeset 18 fcbbe021d614
child 73 70ee5458c95d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/connectionmonitoring/connectionview/inc/scrollareawidget.h	Fri Apr 16 15:21:37 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 <QObject>
+#include <QGraphicsWidget>
+#include <qnetworkconfigmanager.h>
+
+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_ */