ginebra2/ChromeView.h
changeset 0 1450b09d0cfd
child 3 0954f5dd2cd0
child 5 0f2326c2a325
equal deleted inserted replaced
-1:000000000000 0:1450b09d0cfd
       
     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 
       
    19 #ifndef __GINEBRA_CHROMEVIEW_H__
       
    20 #define __GINEBRA_CHROMEVIEW_H__
       
    21 #include <QtGui>
       
    22 
       
    23 namespace GVA {
       
    24 
       
    25 class ChromeWidget;
       
    26 
       
    27 class ChromeView : public QGraphicsView
       
    28 {
       
    29     Q_OBJECT
       
    30  public:
       
    31   ChromeView(ChromeWidget * chrome, QWidget * parent = 0 );
       
    32   ~ChromeView();
       
    33   void resizeEvent(QResizeEvent * ev);
       
    34   bool event(QEvent* event);
       
    35   void scrollContentsBy(int dx, int dy);
       
    36   //protected:
       
    37   //bool eventFilter(QObject * obj, QEvent * ev);
       
    38  
       
    39 #ifdef Q_OS_SYMBIAN
       
    40 #ifdef SET_DEFAULT_IAP
       
    41   public slots:
       
    42   void setDefaultIap();
       
    43 #endif 
       
    44 #endif
       
    45 
       
    46  private:
       
    47   QGraphicsWidget * m_topWidget;
       
    48 };
       
    49 } 
       
    50 #endif //__GINEBRA_CHROMEVIEW_H__