ganeswidgets/tsrc/fute/HgWidgetTest/inc/hgcoveritem.h
changeset 2 49c70dcc3f17
child 3 c863538fcbb6
equal deleted inserted replaced
1:e48454f237ca 2:49c70dcc3f17
       
     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:  Another view for test application.
       
    15 *
       
    16 */
       
    17 #ifndef HGCOVERITEM_H_
       
    18 #define HGCOVERITEM_H_
       
    19 
       
    20 #include <QGraphicsPixmapItem>
       
    21 #include <hbiconitem>
       
    22 #include <hblistwidget>
       
    23 
       
    24 class HgCoverItem : public HbIconItem
       
    25 {
       
    26     Q_OBJECT
       
    27 
       
    28 public:
       
    29 
       
    30     HgCoverItem(QPixmap pixmap, QGraphicsItem *parent);
       
    31 
       
    32 signals:
       
    33 
       
    34     void close();
       
    35     
       
    36 private:
       
    37 
       
    38     virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
       
    39 };
       
    40 
       
    41 class HgListWidget : public HbListWidget
       
    42 {
       
    43     Q_OBJECT
       
    44   
       
    45 public:
       
    46     
       
    47     HgListWidget(QGraphicsItem *parent = 0);
       
    48 
       
    49 signals:
       
    50 
       
    51     void close();
       
    52     
       
    53 private:
       
    54     
       
    55     virtual void leftGesture(int value);    
       
    56     
       
    57 };
       
    58 
       
    59 #endif /* HGCOVERITEM_H_*/
       
    60 
       
    61 // EOF