tsrc/mocks/orbit/mock_hbtoucharea.cpp
changeset 78 baacf668fe89
equal deleted inserted replaced
76:cfea66083b62 78:baacf668fe89
       
     1 /** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 * All rights reserved.
       
     3 * This component and the accompanying materials are made available
       
     4 * under the terms of the License "Eclipse Public License v1.0"
       
     5 * which accompanies this distribution, and is available
       
     6 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 *
       
     8 * Initial Contributors:
       
     9 * Nokia Corporation - initial contribution.
       
    10 *
       
    11 * Contributors:
       
    12 *
       
    13 * Description:
       
    14 *
       
    15 */
       
    16 #include <QDebug>
       
    17 #include <smcmockclassincludes.h>
       
    18 #include <hbtoucharea.h>
       
    19 
       
    20 #include <QWidget>
       
    21 #include <QStyleOptionGraphicsItem>
       
    22 #include <QPainter>
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // HbTouchArea::HbTouchArea
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 HbTouchArea::HbTouchArea( 
       
    31         QGraphicsItem * /*parent*/ )
       
    32     //:
       
    33     //HbWidgetBase( /*parent*/ )
       
    34     {
       
    35     
       
    36     }
       
    37 
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // HbTouchArea::~HbTouchArea
       
    41 // -----------------------------------------------------------------------------
       
    42 //
       
    43 HbTouchArea::~HbTouchArea(  )
       
    44     {
       
    45     
       
    46     }
       
    47 
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // HbTouchArea::setSize
       
    51 // -----------------------------------------------------------------------------
       
    52 //
       
    53 void HbTouchArea::setSize( 
       
    54         const QSizeF & size )
       
    55     {
       
    56     SMC_MOCK_METHOD1( void, const QSizeF &, size )
       
    57     }
       
    58 
       
    59 
       
    60 // -----------------------------------------------------------------------------
       
    61 // HbTouchArea::setGeometry
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 void HbTouchArea::setGeometry( 
       
    65         const QRectF & rect )
       
    66     {
       
    67     SMC_MOCK_METHOD1( void, const QRectF &, rect )
       
    68     }
       
    69 
       
    70 
       
    71 // -----------------------------------------------------------------------------
       
    72 // HbTouchArea::updateGeometry
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 void HbTouchArea::updateGeometry(  )
       
    76     {
       
    77     SMC_MOCK_METHOD0( void )
       
    78     }
       
    79 
       
    80 
       
    81 // -----------------------------------------------------------------------------
       
    82 // HbTouchArea::paint
       
    83 // -----------------------------------------------------------------------------
       
    84 //
       
    85 void HbTouchArea::paint( 
       
    86         QPainter * painter,
       
    87         const QStyleOptionGraphicsItem * option,
       
    88         QWidget * widget )
       
    89     {
       
    90     SMC_MOCK_METHOD3( void, QPainter *, painter, 
       
    91         const QStyleOptionGraphicsItem *, option, 
       
    92         QWidget *, widget )
       
    93     }
       
    94 
       
    95 
       
    96 // -----------------------------------------------------------------------------
       
    97 // HbTouchArea::type
       
    98 // -----------------------------------------------------------------------------
       
    99 //
       
   100 /*int HbTouchArea::type(  ) const
       
   101     {
       
   102     SMC_MOCK_METHOD0( int )
       
   103     }*/
       
   104 
       
   105 
       
   106 // -----------------------------------------------------------------------------
       
   107 // HbTouchArea::HbTouchArea
       
   108 // -----------------------------------------------------------------------------
       
   109 //
       
   110 HbTouchArea::HbTouchArea( 
       
   111         HbTouchAreaPrivate & /*dd*/,
       
   112         QGraphicsItem * /*parent*/ )
       
   113     //:
       
   114     //HbWidgetBase( /*dd, parent*/ )
       
   115     {
       
   116     
       
   117     }
       
   118 
       
   119 
       
   120 // -----------------------------------------------------------------------------
       
   121 // HbTouchArea::sizeHint
       
   122 // -----------------------------------------------------------------------------
       
   123 //
       
   124 QSizeF HbTouchArea::sizeHint( 
       
   125         Qt::SizeHint which,
       
   126         const QSizeF & constraint ) const
       
   127     {
       
   128     SMC_MOCK_METHOD2( QSizeF, Qt::SizeHint, which, 
       
   129         const QSizeF &, constraint )
       
   130     }
       
   131 
       
   132 
       
   133 // -----------------------------------------------------------------------------
       
   134 // HbTouchArea::gestureEvent
       
   135 // -----------------------------------------------------------------------------
       
   136 //
       
   137 void HbTouchArea::gestureEvent( 
       
   138         QGestureEvent * event )
       
   139     {
       
   140     SMC_MOCK_METHOD1( void, QGestureEvent *, event )
       
   141     }
       
   142 
       
   143