controlpanel/tsrc/unit/ut_cpdataformlistentryviewitem/src/mycpdataformlistentryviewitem.cpp
branchRCL_3
changeset 24 8ee96d21d9bf
equal deleted inserted replaced
23:8bda91a87a00 24:8ee96d21d9bf
       
     1 /*
       
     2 * Copyright (c) 2009 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 *       test application for qt control panel public apis.
       
    16 */
       
    17 
       
    18 #include "mycpdataformlistentryviewitem.h"
       
    19 
       
    20 #include <QtTest/QtTest>
       
    21 
       
    22 /*!
       
    23     \class MyCpDataFormListEntryViewItem
       
    24     \brief The MyCpDataFormListEntryViewItem class is designed for the unit testing for the protected member functions in CpDataFormListEntryViewItem class.
       
    25  */
       
    26 
       
    27 /*!
       
    28  * Default constructor
       
    29  */
       
    30 MyCpDataFormListEntryViewItem::MyCpDataFormListEntryViewItem(QGraphicsItem *parent) : CpDataFormListEntryViewItem(parent)
       
    31     {
       
    32     
       
    33     }
       
    34 
       
    35 /*!
       
    36  * this is also for protected member functions testing, call base class implematation directly.
       
    37  */
       
    38 HbWidget * MyCpDataFormListEntryViewItem::createCustomWidget()
       
    39     {
       
    40     return CpDataFormListEntryViewItem::createCustomWidget();
       
    41     }
       
    42 
       
    43 void MyCpDataFormListEntryViewItem::pressStateChanged(bool pressed, bool animate)
       
    44     {
       
    45     CpDataFormListEntryViewItem::pressStateChanged(pressed, animate);
       
    46     }
       
    47 
       
    48 void MyCpDataFormListEntryViewItem::gestureEvent(QGestureEvent *event)
       
    49     {
       
    50     CpDataFormListEntryViewItem::gestureEvent(event);
       
    51     }