connectionmonitoring/connectionview/inc/scrollareawidget.h
changeset 18 fcbbe021d614
child 73 70ee5458c95d
equal deleted inserted replaced
4:77415202bfc8 18:fcbbe021d614
       
     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: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SCROLLAREAWIDGET_H_
       
    19 #define SCROLLAREAWIDGET_H_
       
    20 
       
    21 #include <QObject>
       
    22 #include <QGraphicsWidget>
       
    23 #include <qnetworkconfigmanager.h>
       
    24 
       
    25 QTM_USE_NAMESPACE
       
    26 
       
    27 class ScrollAreaWidget: public QGraphicsWidget
       
    28 {
       
    29     Q_OBJECT
       
    30     
       
    31 public:
       
    32     /* Constructor */
       
    33     ScrollAreaWidget(QGraphicsItem *parent = 0);
       
    34     
       
    35     /* Destructor */
       
    36     ~ScrollAreaWidget();
       
    37     
       
    38     /* 
       
    39      * Function to filter all the resizing events to get the widget to
       
    40      * resize itself when switched to landscape and back
       
    41      */
       
    42     bool eventFilter(QObject *object, QEvent *event);
       
    43 };
       
    44 
       
    45 #endif /* SCROLLAREAWIDGET_H_ */