connectionmonitoring/connectionview/src/scrollareawidget.cpp
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
child 62 bb1f80fb7db2
--- a/connectionmonitoring/connectionview/src/scrollareawidget.cpp	Tue Aug 31 15:35:44 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,59 +0,0 @@
-/*
-* 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: 
-*
-*/
-
-#include <QGraphicsItem>
-#include <QEvent>
-#include <QGraphicsSceneResizeEvent>
-#include "scrollareawidget.h"
-#include "OstTraceDefinitions.h"
-#ifdef OST_TRACE_COMPILER_IN_USE
-#include "scrollareawidgetTraces.h"
-#endif
-
-
-QTM_USE_NAMESPACE
-
-
-ScrollAreaWidget::ScrollAreaWidget(QGraphicsItem *parent):
-    QGraphicsWidget(parent)
-{
-    OstTraceFunctionEntry0( SCROLLAREAWIDGET_SCROLLAREAWIDGET_ENTRY ); 
-    OstTraceFunctionExit0( SCROLLAREAWIDGET_SCROLLAREAWIDGET_EXIT );
-}
-
-ScrollAreaWidget::~ScrollAreaWidget() 
-{
-    OstTraceFunctionEntry0( DUP1_SCROLLAREAWIDGET_SCROLLAREAWIDGET_ENTRY );
-    OstTraceFunctionExit0( DUP1_SCROLLAREAWIDGET_SCROLLAREAWIDGET_EXIT );
-}
-
-/*!
-    Filters the resizing events to get the widget resized when switching to 
-    landscape and back
-*/
-bool ScrollAreaWidget::eventFilter(QObject *object, QEvent *event)
-{
-    OstTraceFunctionEntry0( SCROLLAREAWIDGET_EVENTFILTER_ENTRY );
-    
-    if(event->type() == QEvent::GraphicsSceneResize){
-        resize(((QGraphicsSceneResizeEvent*)event)->newSize());
-        OstTraceFunctionExit0( SCROLLAREAWIDGET_EVENTFILTER_EXIT );
-        return true;
-    } else {
-        return QGraphicsWidget::eventFilter(object, event);
-    }
-}