tsrc/mocks/qtgui/mock_qgraphicswidget.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 <QGraphicsSceneResizeEvent>
       
    19 #include <QStyleOptionGraphicsItem>
       
    20 #include <QPainter>
       
    21 #include <QAction>
       
    22 #include <QGraphicsLayout>
       
    23 #include "qgraphicswidget.h"
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 // -----------------------------------------------------------------------------
       
    27 // QGraphicsWidget::QGraphicsWidget
       
    28 // -----------------------------------------------------------------------------
       
    29 //
       
    30 QGraphicsWidget::QGraphicsWidget(QGraphicsItem *parent, Qt::WindowFlags wFlags)
       
    31     : QGraphicsObject( parent )
       
    32 {
       
    33 
       
    34 }
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // QGraphicsWidget::QGraphicsWidget
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 QGraphicsWidget::QGraphicsWidget( 
       
    41         QGraphicsWidgetPrivate &,
       
    42         QGraphicsItem * parent,
       
    43         QGraphicsScene *,
       
    44         Qt::WindowFlags  )
       
    45     : QGraphicsObject( parent )
       
    46     {
       
    47     
       
    48     }
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // QGraphicsWidget::~QGraphicsWidget
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 QGraphicsWidget::~QGraphicsWidget(  )
       
    55     {
       
    56     
       
    57     }
       
    58 
       
    59 
       
    60 // -----------------------------------------------------------------------------
       
    61 // QGraphicsWidget::layout
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 QGraphicsLayout * QGraphicsWidget::layout(  ) const
       
    65     {
       
    66     SMC_MOCK_METHOD0( QGraphicsLayout * )
       
    67     }
       
    68 
       
    69 
       
    70 // -----------------------------------------------------------------------------
       
    71 // QGraphicsWidget::setLayout
       
    72 // -----------------------------------------------------------------------------
       
    73 //
       
    74 void QGraphicsWidget::setLayout( 
       
    75         QGraphicsLayout * layout )
       
    76     {
       
    77     SMC_MOCK_METHOD1( void, QGraphicsLayout *, layout )
       
    78     }
       
    79 
       
    80 
       
    81 // -----------------------------------------------------------------------------
       
    82 // QGraphicsWidget::adjustSize
       
    83 // -----------------------------------------------------------------------------
       
    84 //
       
    85 void QGraphicsWidget::adjustSize(  )
       
    86     {
       
    87     SMC_MOCK_METHOD0( void )
       
    88     }
       
    89 
       
    90 
       
    91 // -----------------------------------------------------------------------------
       
    92 // QGraphicsWidget::layoutDirection
       
    93 // -----------------------------------------------------------------------------
       
    94 //
       
    95 Qt::LayoutDirection QGraphicsWidget::layoutDirection(  ) const
       
    96     {
       
    97     SMC_MOCK_METHOD0( Qt::LayoutDirection )
       
    98     }
       
    99 
       
   100 
       
   101 // -----------------------------------------------------------------------------
       
   102 // QGraphicsWidget::setLayoutDirection
       
   103 // -----------------------------------------------------------------------------
       
   104 //
       
   105 void QGraphicsWidget::setLayoutDirection( 
       
   106         Qt::LayoutDirection direction )
       
   107     {
       
   108     SMC_MOCK_METHOD1( void, Qt::LayoutDirection, direction )
       
   109     }
       
   110 
       
   111 
       
   112 // -----------------------------------------------------------------------------
       
   113 // QGraphicsWidget::unsetLayoutDirection
       
   114 // -----------------------------------------------------------------------------
       
   115 //
       
   116 void QGraphicsWidget::unsetLayoutDirection(  )
       
   117     {
       
   118     SMC_MOCK_METHOD0( void )
       
   119     }
       
   120 
       
   121 
       
   122 // -----------------------------------------------------------------------------
       
   123 // QGraphicsWidget::style
       
   124 // -----------------------------------------------------------------------------
       
   125 //
       
   126 QStyle * QGraphicsWidget::style(  ) const
       
   127     {
       
   128     SMC_MOCK_METHOD0( QStyle * )
       
   129     }
       
   130 
       
   131 
       
   132 // -----------------------------------------------------------------------------
       
   133 // QGraphicsWidget::setStyle
       
   134 // -----------------------------------------------------------------------------
       
   135 //
       
   136 void QGraphicsWidget::setStyle( 
       
   137         QStyle * style )
       
   138     {
       
   139     SMC_MOCK_METHOD1( void, QStyle *, style )
       
   140     }
       
   141 
       
   142 
       
   143 // -----------------------------------------------------------------------------
       
   144 // QGraphicsWidget::font
       
   145 // -----------------------------------------------------------------------------
       
   146 //
       
   147 QFont QGraphicsWidget::font(  ) const
       
   148     {
       
   149     SMC_MOCK_METHOD0( QFont )
       
   150     }
       
   151 
       
   152 
       
   153 // -----------------------------------------------------------------------------
       
   154 // QGraphicsWidget::setFont
       
   155 // -----------------------------------------------------------------------------
       
   156 //
       
   157 void QGraphicsWidget::setFont( 
       
   158         const QFont & font )
       
   159     {
       
   160     SMC_MOCK_METHOD1( void, const QFont &, font )
       
   161     }
       
   162 
       
   163 
       
   164 // -----------------------------------------------------------------------------
       
   165 // QGraphicsWidget::palette
       
   166 // -----------------------------------------------------------------------------
       
   167 //
       
   168 QPalette QGraphicsWidget::palette(  ) const
       
   169     {
       
   170     SMC_MOCK_METHOD0( QPalette )
       
   171     }
       
   172 
       
   173 
       
   174 // -----------------------------------------------------------------------------
       
   175 // QGraphicsWidget::setPalette
       
   176 // -----------------------------------------------------------------------------
       
   177 //
       
   178 void QGraphicsWidget::setPalette( 
       
   179         const QPalette & palette )
       
   180     {
       
   181     SMC_MOCK_METHOD1( void, const QPalette &, palette )
       
   182     }
       
   183 
       
   184 
       
   185 // -----------------------------------------------------------------------------
       
   186 // QGraphicsWidget::autoFillBackground
       
   187 // -----------------------------------------------------------------------------
       
   188 //
       
   189 bool QGraphicsWidget::autoFillBackground(  ) const
       
   190     {
       
   191     SMC_MOCK_METHOD0( bool )
       
   192     }
       
   193 
       
   194 
       
   195 // -----------------------------------------------------------------------------
       
   196 // QGraphicsWidget::setAutoFillBackground
       
   197 // -----------------------------------------------------------------------------
       
   198 //
       
   199 void QGraphicsWidget::setAutoFillBackground( 
       
   200         bool enabled )
       
   201     {
       
   202     SMC_MOCK_METHOD1( void, bool, enabled )
       
   203     }
       
   204 
       
   205 
       
   206 // -----------------------------------------------------------------------------
       
   207 // QGraphicsWidget::resize
       
   208 // -----------------------------------------------------------------------------
       
   209 //
       
   210 void QGraphicsWidget::resize( 
       
   211         const QSizeF & size )
       
   212     {
       
   213     SMC_MOCK_METHOD1( void, const QSizeF &, size )
       
   214     }
       
   215 
       
   216 
       
   217 // -----------------------------------------------------------------------------
       
   218 // QGraphicsWidget::size
       
   219 // -----------------------------------------------------------------------------
       
   220 //
       
   221 QSizeF QGraphicsWidget::size(  ) const
       
   222     {
       
   223     SMC_MOCK_METHOD0( QSizeF )
       
   224     }
       
   225 
       
   226 
       
   227 // -----------------------------------------------------------------------------
       
   228 // QGraphicsWidget::setGeometry
       
   229 // -----------------------------------------------------------------------------
       
   230 //
       
   231 void QGraphicsWidget::setGeometry( 
       
   232         const QRectF & rect )
       
   233     {
       
   234     SMC_MOCK_METHOD1( void, const QRectF &, rect )
       
   235     }
       
   236 
       
   237 
       
   238 // -----------------------------------------------------------------------------
       
   239 // QGraphicsWidget::setContentsMargins
       
   240 // -----------------------------------------------------------------------------
       
   241 //
       
   242 void QGraphicsWidget::setContentsMargins( 
       
   243         qreal left,
       
   244         qreal top,
       
   245         qreal right,
       
   246         qreal bottom )
       
   247     {
       
   248     SMC_MOCK_METHOD4( void, qreal, left, 
       
   249         qreal, top, 
       
   250         qreal, right, 
       
   251         qreal, bottom )
       
   252     }
       
   253 
       
   254 
       
   255 // -----------------------------------------------------------------------------
       
   256 // QGraphicsWidget::getContentsMargins
       
   257 // -----------------------------------------------------------------------------
       
   258 //
       
   259 void QGraphicsWidget::getContentsMargins( 
       
   260         qreal * left,
       
   261         qreal * top,
       
   262         qreal * right,
       
   263         qreal * bottom ) const
       
   264     {
       
   265     SMC_MOCK_METHOD4( void, qreal *, left, 
       
   266         qreal *, top, 
       
   267         qreal *, right, 
       
   268         qreal *, bottom )
       
   269     }
       
   270 
       
   271 
       
   272 // -----------------------------------------------------------------------------
       
   273 // QGraphicsWidget::setWindowFrameMargins
       
   274 // -----------------------------------------------------------------------------
       
   275 //
       
   276 void QGraphicsWidget::setWindowFrameMargins( 
       
   277         qreal left,
       
   278         qreal top,
       
   279         qreal right,
       
   280         qreal bottom )
       
   281     {
       
   282     SMC_MOCK_METHOD4( void, qreal, left, 
       
   283         qreal, top, 
       
   284         qreal, right, 
       
   285         qreal, bottom )
       
   286     }
       
   287 
       
   288 
       
   289 // -----------------------------------------------------------------------------
       
   290 // QGraphicsWidget::getWindowFrameMargins
       
   291 // -----------------------------------------------------------------------------
       
   292 //
       
   293 void QGraphicsWidget::getWindowFrameMargins( 
       
   294         qreal * left,
       
   295         qreal * top,
       
   296         qreal * right,
       
   297         qreal * bottom ) const
       
   298     {
       
   299     SMC_MOCK_METHOD4( void, qreal *, left, 
       
   300         qreal *, top, 
       
   301         qreal *, right, 
       
   302         qreal *, bottom )
       
   303     }
       
   304 
       
   305 
       
   306 // -----------------------------------------------------------------------------
       
   307 // QGraphicsWidget::unsetWindowFrameMargins
       
   308 // -----------------------------------------------------------------------------
       
   309 //
       
   310 void QGraphicsWidget::unsetWindowFrameMargins(  )
       
   311     {
       
   312     SMC_MOCK_METHOD0( void )
       
   313     }
       
   314 
       
   315 
       
   316 // -----------------------------------------------------------------------------
       
   317 // QGraphicsWidget::windowFrameGeometry
       
   318 // -----------------------------------------------------------------------------
       
   319 //
       
   320 QRectF QGraphicsWidget::windowFrameGeometry(  ) const
       
   321     {
       
   322     SMC_MOCK_METHOD0( QRectF )
       
   323     }
       
   324 
       
   325 
       
   326 // -----------------------------------------------------------------------------
       
   327 // QGraphicsWidget::windowFrameRect
       
   328 // -----------------------------------------------------------------------------
       
   329 //
       
   330 QRectF QGraphicsWidget::windowFrameRect(  ) const
       
   331     {
       
   332     SMC_MOCK_METHOD0( QRectF )
       
   333     }
       
   334 
       
   335 
       
   336 // -----------------------------------------------------------------------------
       
   337 // QGraphicsWidget::windowFlags
       
   338 // -----------------------------------------------------------------------------
       
   339 //
       
   340 Qt::WindowFlags QGraphicsWidget::windowFlags(  ) const
       
   341     {
       
   342     SMC_MOCK_METHOD0( Qt::WindowFlags )
       
   343     }
       
   344 
       
   345 
       
   346 // -----------------------------------------------------------------------------
       
   347 // QGraphicsWidget::windowType
       
   348 // -----------------------------------------------------------------------------
       
   349 //
       
   350 Qt::WindowType QGraphicsWidget::windowType(  ) const
       
   351     {
       
   352     SMC_MOCK_METHOD0( Qt::WindowType )
       
   353     }
       
   354 
       
   355 
       
   356 // -----------------------------------------------------------------------------
       
   357 // QGraphicsWidget::setWindowFlags
       
   358 // -----------------------------------------------------------------------------
       
   359 //
       
   360 void QGraphicsWidget::setWindowFlags( 
       
   361         Qt::WindowFlags wFlags )
       
   362     {
       
   363     SMC_MOCK_METHOD1( void, /*Qt::WindowFlags*/int, wFlags )
       
   364     }
       
   365 
       
   366 
       
   367 // -----------------------------------------------------------------------------
       
   368 // QGraphicsWidget::isActiveWindow
       
   369 // -----------------------------------------------------------------------------
       
   370 //
       
   371 bool QGraphicsWidget::isActiveWindow(  ) const
       
   372     {
       
   373     SMC_MOCK_METHOD0( bool )
       
   374     }
       
   375 
       
   376 
       
   377 // -----------------------------------------------------------------------------
       
   378 // QGraphicsWidget::setWindowTitle
       
   379 // -----------------------------------------------------------------------------
       
   380 //
       
   381 void QGraphicsWidget::setWindowTitle( 
       
   382         const QString & title )
       
   383     {
       
   384     SMC_MOCK_METHOD1( void, const QString &, title )
       
   385     }
       
   386 
       
   387 
       
   388 // -----------------------------------------------------------------------------
       
   389 // QGraphicsWidget::windowTitle
       
   390 // -----------------------------------------------------------------------------
       
   391 //
       
   392 QString QGraphicsWidget::windowTitle(  ) const
       
   393     {
       
   394     SMC_MOCK_METHOD0( QString )
       
   395     }
       
   396 
       
   397 
       
   398 // -----------------------------------------------------------------------------
       
   399 // QGraphicsWidget::focusPolicy
       
   400 // -----------------------------------------------------------------------------
       
   401 //
       
   402 Qt::FocusPolicy QGraphicsWidget::focusPolicy(  ) const
       
   403     {
       
   404     SMC_MOCK_METHOD0( Qt::FocusPolicy )
       
   405     }
       
   406 
       
   407 
       
   408 // -----------------------------------------------------------------------------
       
   409 // QGraphicsWidget::setFocusPolicy
       
   410 // -----------------------------------------------------------------------------
       
   411 //
       
   412 void QGraphicsWidget::setFocusPolicy( 
       
   413         Qt::FocusPolicy policy )
       
   414     {
       
   415     SMC_MOCK_METHOD1( void, Qt::FocusPolicy, policy )
       
   416     }
       
   417 
       
   418 
       
   419 // -----------------------------------------------------------------------------
       
   420 // QGraphicsWidget::setTabOrder
       
   421 // -----------------------------------------------------------------------------
       
   422 //
       
   423 void QGraphicsWidget::setTabOrder( 
       
   424         QGraphicsWidget * first,
       
   425         QGraphicsWidget * second )
       
   426     {
       
   427     SMC_MOCK_METHOD2( void, QGraphicsWidget *, first, 
       
   428         QGraphicsWidget *, second )
       
   429     }
       
   430 
       
   431 
       
   432 // -----------------------------------------------------------------------------
       
   433 // QGraphicsWidget::focusWidget
       
   434 // -----------------------------------------------------------------------------
       
   435 //
       
   436 QGraphicsWidget * QGraphicsWidget::focusWidget(  ) const
       
   437     {
       
   438     SMC_MOCK_METHOD0( QGraphicsWidget * )
       
   439     }
       
   440 
       
   441 
       
   442 // -----------------------------------------------------------------------------
       
   443 // QGraphicsWidget::grabShortcut
       
   444 // -----------------------------------------------------------------------------
       
   445 //
       
   446 int QGraphicsWidget::grabShortcut( 
       
   447         const QKeySequence & s,
       
   448         Qt::ShortcutContext c )
       
   449     {
       
   450     SMC_MOCK_METHOD2( int, const QKeySequence &, s, 
       
   451         Qt::ShortcutContext, c )
       
   452     }
       
   453 
       
   454 
       
   455 // -----------------------------------------------------------------------------
       
   456 // QGraphicsWidget::releaseShortcut
       
   457 // -----------------------------------------------------------------------------
       
   458 //
       
   459 void QGraphicsWidget::releaseShortcut( 
       
   460         int id )
       
   461     {
       
   462     SMC_MOCK_METHOD1( void, int, id )
       
   463     }
       
   464 
       
   465 
       
   466 // -----------------------------------------------------------------------------
       
   467 // QGraphicsWidget::setShortcutEnabled
       
   468 // -----------------------------------------------------------------------------
       
   469 //
       
   470 void QGraphicsWidget::setShortcutEnabled( 
       
   471         int id,
       
   472         bool enabled )
       
   473     {
       
   474     SMC_MOCK_METHOD2( void, int, id, 
       
   475         bool, enabled )
       
   476     }
       
   477 
       
   478 
       
   479 // -----------------------------------------------------------------------------
       
   480 // QGraphicsWidget::setShortcutAutoRepeat
       
   481 // -----------------------------------------------------------------------------
       
   482 //
       
   483 void QGraphicsWidget::setShortcutAutoRepeat( 
       
   484         int id,
       
   485         bool enabled )
       
   486     {
       
   487     SMC_MOCK_METHOD2( void, int, id, 
       
   488         bool, enabled )
       
   489     }
       
   490 
       
   491 
       
   492 // -----------------------------------------------------------------------------
       
   493 // QGraphicsWidget::addAction
       
   494 // -----------------------------------------------------------------------------
       
   495 //
       
   496 void QGraphicsWidget::addAction( 
       
   497         QAction * a )
       
   498     {
       
   499     SMC_MOCK_METHOD1( void, QAction *, a )
       
   500     }
       
   501 
       
   502 
       
   503 // -----------------------------------------------------------------------------
       
   504 // QGraphicsWidget::addActions
       
   505 // -----------------------------------------------------------------------------
       
   506 //
       
   507 void QGraphicsWidget::addActions( 
       
   508         QList<QAction *> actions )
       
   509     {
       
   510     SMC_MOCK_METHOD1( void, QList<QAction *>, actions )
       
   511     }
       
   512 
       
   513 
       
   514 // -----------------------------------------------------------------------------
       
   515 // QGraphicsWidget::insertAction
       
   516 // -----------------------------------------------------------------------------
       
   517 //
       
   518 void QGraphicsWidget::insertAction( 
       
   519         QAction * before,
       
   520         QAction * a )
       
   521     {
       
   522     SMC_MOCK_METHOD2( void, QAction *, before, 
       
   523         QAction *, a )
       
   524     }
       
   525 
       
   526 
       
   527 // -----------------------------------------------------------------------------
       
   528 // QGraphicsWidget::insertActions
       
   529 // -----------------------------------------------------------------------------
       
   530 //
       
   531 void QGraphicsWidget::insertActions( 
       
   532         QAction * before,
       
   533         QList<QAction *> actions )
       
   534     {
       
   535     SMC_MOCK_METHOD2( void, QAction *, before, 
       
   536         QList<QAction *>, actions )
       
   537     }
       
   538 
       
   539 
       
   540 // -----------------------------------------------------------------------------
       
   541 // QGraphicsWidget::removeAction
       
   542 // -----------------------------------------------------------------------------
       
   543 //
       
   544 void QGraphicsWidget::removeAction( 
       
   545         QAction * a )
       
   546     {
       
   547     SMC_MOCK_METHOD1( void, QAction *, a )
       
   548     }
       
   549 
       
   550 
       
   551 // -----------------------------------------------------------------------------
       
   552 // QGraphicsWidget::actions
       
   553 // -----------------------------------------------------------------------------
       
   554 //
       
   555 QList <QAction * > QGraphicsWidget::actions(  ) const
       
   556     {
       
   557     SMC_MOCK_METHOD0( QList <QAction * > )
       
   558     }
       
   559 
       
   560 
       
   561 // -----------------------------------------------------------------------------
       
   562 // QGraphicsWidget::setAttribute
       
   563 // -----------------------------------------------------------------------------
       
   564 //
       
   565 void QGraphicsWidget::setAttribute( 
       
   566         Qt::WidgetAttribute attribute,
       
   567         bool on )
       
   568     {
       
   569     SMC_MOCK_METHOD2( void, Qt::WidgetAttribute, attribute, 
       
   570         bool, on )
       
   571     }
       
   572 
       
   573 
       
   574 // -----------------------------------------------------------------------------
       
   575 // QGraphicsWidget::testAttribute
       
   576 // -----------------------------------------------------------------------------
       
   577 //
       
   578 bool QGraphicsWidget::testAttribute( 
       
   579         Qt::WidgetAttribute attribute ) const
       
   580     {
       
   581     SMC_MOCK_METHOD1( bool, Qt::WidgetAttribute, attribute )
       
   582     }
       
   583 
       
   584 
       
   585 // -----------------------------------------------------------------------------
       
   586 // QGraphicsWidget::type
       
   587 // -----------------------------------------------------------------------------
       
   588 //
       
   589 int QGraphicsWidget::type(  ) const
       
   590     {
       
   591     SMC_MOCK_METHOD0( int )
       
   592     }
       
   593 
       
   594 
       
   595 // -----------------------------------------------------------------------------
       
   596 // QGraphicsWidget::paint
       
   597 // -----------------------------------------------------------------------------
       
   598 //
       
   599 void QGraphicsWidget::paint( 
       
   600         QPainter * painter,
       
   601         const QStyleOptionGraphicsItem * option,
       
   602         QWidget * widget )
       
   603     {
       
   604     SMC_MOCK_METHOD3( void, QPainter *, painter, 
       
   605         const QStyleOptionGraphicsItem *, option, 
       
   606         QWidget *, widget )
       
   607     }
       
   608 
       
   609 
       
   610 // -----------------------------------------------------------------------------
       
   611 // QGraphicsWidget::paintWindowFrame
       
   612 // -----------------------------------------------------------------------------
       
   613 //
       
   614 void QGraphicsWidget::paintWindowFrame( 
       
   615         QPainter * painter,
       
   616         const QStyleOptionGraphicsItem * option,
       
   617         QWidget * widget )
       
   618     {
       
   619     SMC_MOCK_METHOD3( void, QPainter *, painter, 
       
   620         const QStyleOptionGraphicsItem *, option, 
       
   621         QWidget *, widget )
       
   622     }
       
   623 
       
   624 
       
   625 // -----------------------------------------------------------------------------
       
   626 // QGraphicsWidget::boundingRect
       
   627 // -----------------------------------------------------------------------------
       
   628 //
       
   629 QRectF QGraphicsWidget::boundingRect(  ) const
       
   630     {
       
   631     SMC_MOCK_METHOD0( QRectF )
       
   632     }
       
   633 
       
   634 
       
   635 // -----------------------------------------------------------------------------
       
   636 // QGraphicsWidget::shape
       
   637 // -----------------------------------------------------------------------------
       
   638 //
       
   639 QPainterPath QGraphicsWidget::shape(  ) const
       
   640     {
       
   641     SMC_MOCK_METHOD0( QPainterPath )
       
   642     }
       
   643 
       
   644 
       
   645 
       
   646 // -----------------------------------------------------------------------------
       
   647 // QGraphicsWidget::layoutChanged
       
   648 // -----------------------------------------------------------------------------
       
   649 //
       
   650 void QGraphicsWidget::layoutChanged(  )
       
   651     {
       
   652     SMC_MOCK_METHOD0( void )
       
   653     }
       
   654 
       
   655 
       
   656 // -----------------------------------------------------------------------------
       
   657 // QGraphicsWidget::close
       
   658 // -----------------------------------------------------------------------------
       
   659 //
       
   660 bool QGraphicsWidget::close(  )
       
   661     {
       
   662     SMC_MOCK_METHOD0( bool )
       
   663     }
       
   664 
       
   665 
       
   666 // -----------------------------------------------------------------------------
       
   667 // QGraphicsWidget::initStyleOption
       
   668 // -----------------------------------------------------------------------------
       
   669 //
       
   670 void QGraphicsWidget::initStyleOption( 
       
   671         QStyleOption * option ) const
       
   672     {
       
   673     SMC_MOCK_METHOD1( void, QStyleOption *, option )
       
   674     }
       
   675 
       
   676 
       
   677 // -----------------------------------------------------------------------------
       
   678 // QGraphicsWidget::sizeHint
       
   679 // -----------------------------------------------------------------------------
       
   680 //
       
   681 QSizeF QGraphicsWidget::sizeHint( 
       
   682         Qt::SizeHint which,
       
   683         const QSizeF & constraint ) const
       
   684     {
       
   685     SMC_MOCK_METHOD2( QSizeF, Qt::SizeHint, which, 
       
   686         const QSizeF &, constraint )
       
   687     }
       
   688 
       
   689 
       
   690 // -----------------------------------------------------------------------------
       
   691 // QGraphicsWidget::updateGeometry
       
   692 // -----------------------------------------------------------------------------
       
   693 //
       
   694 void QGraphicsWidget::updateGeometry(  )
       
   695     {
       
   696     SMC_MOCK_METHOD0( void )
       
   697     }
       
   698 
       
   699 
       
   700 // -----------------------------------------------------------------------------
       
   701 // QGraphicsWidget::itemChange
       
   702 // -----------------------------------------------------------------------------
       
   703 //
       
   704 QVariant QGraphicsWidget::itemChange( 
       
   705         GraphicsItemChange change,
       
   706         const QVariant & value )
       
   707     {
       
   708     SMC_MOCK_METHOD2( QVariant, GraphicsItemChange, change, 
       
   709         const QVariant &, value )
       
   710     }
       
   711 
       
   712 
       
   713 // -----------------------------------------------------------------------------
       
   714 // QGraphicsWidget::propertyChange
       
   715 // -----------------------------------------------------------------------------
       
   716 //
       
   717 QVariant QGraphicsWidget::propertyChange( 
       
   718         const QString & propertyName,
       
   719         const QVariant & value )
       
   720     {
       
   721     SMC_MOCK_METHOD2( QVariant, const QString &, propertyName, 
       
   722         const QVariant &, value )
       
   723     }
       
   724 
       
   725 
       
   726 // -----------------------------------------------------------------------------
       
   727 // QGraphicsWidget::sceneEvent
       
   728 // -----------------------------------------------------------------------------
       
   729 //
       
   730 bool QGraphicsWidget::sceneEvent( 
       
   731         QEvent * event )
       
   732     {
       
   733     SMC_MOCK_METHOD1( bool, QEvent *, event )
       
   734     }
       
   735 
       
   736 
       
   737 // -----------------------------------------------------------------------------
       
   738 // QGraphicsWidget::windowFrameEvent
       
   739 // -----------------------------------------------------------------------------
       
   740 //
       
   741 bool QGraphicsWidget::windowFrameEvent( 
       
   742         QEvent * e )
       
   743     {
       
   744     SMC_MOCK_METHOD1( bool, QEvent *, e )
       
   745     }
       
   746 
       
   747 
       
   748 // -----------------------------------------------------------------------------
       
   749 // QGraphicsWidget::windowFrameSectionAt
       
   750 // -----------------------------------------------------------------------------
       
   751 //
       
   752 Qt::WindowFrameSection QGraphicsWidget::windowFrameSectionAt( 
       
   753         const QPointF & pos ) const
       
   754     {
       
   755     SMC_MOCK_METHOD1( Qt::WindowFrameSection, const QPointF &, pos )
       
   756     }
       
   757 
       
   758 
       
   759 // -----------------------------------------------------------------------------
       
   760 // QGraphicsWidget::event
       
   761 // -----------------------------------------------------------------------------
       
   762 //
       
   763 bool QGraphicsWidget::event( 
       
   764         QEvent * event )
       
   765     {
       
   766     SMC_MOCK_METHOD1( bool, QEvent *, event )
       
   767     }
       
   768 
       
   769 
       
   770 // -----------------------------------------------------------------------------
       
   771 // QGraphicsWidget::changeEvent
       
   772 // -----------------------------------------------------------------------------
       
   773 //
       
   774 void QGraphicsWidget::changeEvent( 
       
   775         QEvent * event )
       
   776     {
       
   777     SMC_MOCK_METHOD1( void, QEvent *, event )
       
   778     }
       
   779 
       
   780 
       
   781 // -----------------------------------------------------------------------------
       
   782 // QGraphicsWidget::closeEvent
       
   783 // -----------------------------------------------------------------------------
       
   784 //
       
   785 void QGraphicsWidget::closeEvent( 
       
   786         QCloseEvent * event )
       
   787     {
       
   788     SMC_MOCK_METHOD1( void, QCloseEvent *, event )
       
   789     }
       
   790 
       
   791 
       
   792 // -----------------------------------------------------------------------------
       
   793 // QGraphicsWidget::focusInEvent
       
   794 // -----------------------------------------------------------------------------
       
   795 //
       
   796 void QGraphicsWidget::focusInEvent( 
       
   797         QFocusEvent * event )
       
   798     {
       
   799     SMC_MOCK_METHOD1( void, QFocusEvent *, event )
       
   800     }
       
   801 
       
   802 
       
   803 // -----------------------------------------------------------------------------
       
   804 // QGraphicsWidget::focusNextPrevChild
       
   805 // -----------------------------------------------------------------------------
       
   806 //
       
   807 bool QGraphicsWidget::focusNextPrevChild( 
       
   808         bool next )
       
   809     {
       
   810     SMC_MOCK_METHOD1( bool, bool, next )
       
   811     }
       
   812 
       
   813 
       
   814 // -----------------------------------------------------------------------------
       
   815 // QGraphicsWidget::focusOutEvent
       
   816 // -----------------------------------------------------------------------------
       
   817 //
       
   818 void QGraphicsWidget::focusOutEvent( 
       
   819         QFocusEvent * event )
       
   820     {
       
   821     SMC_MOCK_METHOD1( void, QFocusEvent *, event )
       
   822     }
       
   823 
       
   824 
       
   825 // -----------------------------------------------------------------------------
       
   826 // QGraphicsWidget::hideEvent
       
   827 // -----------------------------------------------------------------------------
       
   828 //
       
   829 void QGraphicsWidget::hideEvent( 
       
   830         QHideEvent * event )
       
   831     {
       
   832     SMC_MOCK_METHOD1( void, QHideEvent *, event )
       
   833     }
       
   834 
       
   835 
       
   836 // -----------------------------------------------------------------------------
       
   837 // QGraphicsWidget::moveEvent
       
   838 // -----------------------------------------------------------------------------
       
   839 //
       
   840 void QGraphicsWidget::moveEvent( 
       
   841         QGraphicsSceneMoveEvent * event )
       
   842     {
       
   843     SMC_MOCK_METHOD1( void, QGraphicsSceneMoveEvent *, event )
       
   844     }
       
   845 
       
   846 
       
   847 // -----------------------------------------------------------------------------
       
   848 // QGraphicsWidget::polishEvent
       
   849 // -----------------------------------------------------------------------------
       
   850 //
       
   851 void QGraphicsWidget::polishEvent(  )
       
   852     {
       
   853     SMC_MOCK_METHOD0( void )
       
   854     }
       
   855 
       
   856 
       
   857 // -----------------------------------------------------------------------------
       
   858 // QGraphicsWidget::resizeEvent
       
   859 // -----------------------------------------------------------------------------
       
   860 //
       
   861 void QGraphicsWidget::resizeEvent( 
       
   862         QGraphicsSceneResizeEvent * event )
       
   863     {
       
   864     SMC_MOCK_METHOD1( void, QGraphicsSceneResizeEvent *, event )
       
   865     }
       
   866 
       
   867 
       
   868 // -----------------------------------------------------------------------------
       
   869 // QGraphicsWidget::showEvent
       
   870 // -----------------------------------------------------------------------------
       
   871 //
       
   872 void QGraphicsWidget::showEvent( 
       
   873         QShowEvent * event )
       
   874     {
       
   875     SMC_MOCK_METHOD1( void, QShowEvent *, event )
       
   876     }
       
   877 
       
   878 
       
   879 // -----------------------------------------------------------------------------
       
   880 // QGraphicsWidget::hoverMoveEvent
       
   881 // -----------------------------------------------------------------------------
       
   882 //
       
   883 void QGraphicsWidget::hoverMoveEvent( 
       
   884         QGraphicsSceneHoverEvent * event )
       
   885     {
       
   886     SMC_MOCK_METHOD1( void, QGraphicsSceneHoverEvent *, event )
       
   887     }
       
   888 
       
   889 
       
   890 // -----------------------------------------------------------------------------
       
   891 // QGraphicsWidget::hoverLeaveEvent
       
   892 // -----------------------------------------------------------------------------
       
   893 //
       
   894 void QGraphicsWidget::hoverLeaveEvent( 
       
   895         QGraphicsSceneHoverEvent * event )
       
   896     {
       
   897     SMC_MOCK_METHOD1( void, QGraphicsSceneHoverEvent *, event )
       
   898     }
       
   899 
       
   900 
       
   901 // -----------------------------------------------------------------------------
       
   902 // QGraphicsWidget::grabMouseEvent
       
   903 // -----------------------------------------------------------------------------
       
   904 //
       
   905 void QGraphicsWidget::grabMouseEvent( 
       
   906         QEvent * event )
       
   907     {
       
   908     SMC_MOCK_METHOD1( void, QEvent *, event )
       
   909     }
       
   910 
       
   911 
       
   912 // -----------------------------------------------------------------------------
       
   913 // QGraphicsWidget::ungrabMouseEvent
       
   914 // -----------------------------------------------------------------------------
       
   915 //
       
   916 void QGraphicsWidget::ungrabMouseEvent( 
       
   917         QEvent * event )
       
   918     {
       
   919     SMC_MOCK_METHOD1( void, QEvent *, event )
       
   920     }
       
   921 
       
   922 
       
   923 // -----------------------------------------------------------------------------
       
   924 // QGraphicsWidget::grabKeyboardEvent
       
   925 // -----------------------------------------------------------------------------
       
   926 //
       
   927 void QGraphicsWidget::grabKeyboardEvent( 
       
   928         QEvent * event )
       
   929     {
       
   930     SMC_MOCK_METHOD1( void, QEvent *, event )
       
   931     }
       
   932 
       
   933 
       
   934 // -----------------------------------------------------------------------------
       
   935 // QGraphicsWidget::ungrabKeyboardEvent
       
   936 // -----------------------------------------------------------------------------
       
   937 //
       
   938 void QGraphicsWidget::ungrabKeyboardEvent( 
       
   939         QEvent * event )
       
   940     {
       
   941     SMC_MOCK_METHOD1( void, QEvent *, event )
       
   942     }
       
   943 
       
   944