telutils/dialpad/tsrc/unit/shared/mock_hblineedit.cpp
changeset 51 12bc758d6a02
parent 32 1f002146abb4
equal deleted inserted replaced
48:78df25012fda 51:12bc758d6a02
     1 /*
     1 /** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
     2 * All rights reserved.
     4 * This component and the accompanying materials are made available
     3 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     4 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     5 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     7 *
     9 * Initial Contributors:
     8 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
     9 * Nokia Corporation - initial contribution.
    11 *
    10 *
    12 * Contributors:
    11 * Contributors:
    13 *
    12 *
    14 * Description: 
    13 * Description:
    15 *
    14 *
    16 */
    15 */
    17 #include <QDebug>
    16 #include <QDebug>
    18 #include <QFontMetrics>
    17 #include <QFontMetrics>
    19 #include <QGraphicsSceneMouseEvent>
    18 #include <QGraphicsSceneMouseEvent>
   205         int, length )
   204         int, length )
   206     }
   205     }
   207 
   206 
   208 
   207 
   209 // -----------------------------------------------------------------------------
   208 // -----------------------------------------------------------------------------
   210 // HbLineEdit::cursorPosition
       
   211 // -----------------------------------------------------------------------------
       
   212 //
       
   213 int HbLineEdit::cursorPosition() const
       
   214     {
       
   215     SMC_MOCK_METHOD0( int )
       
   216     }
       
   217 
       
   218 // -----------------------------------------------------------------------------
       
   219 // HbLineEdit::setCursorPosition
   209 // HbLineEdit::setCursorPosition
   220 // -----------------------------------------------------------------------------
   210 // -----------------------------------------------------------------------------
   221 //
   211 //
   222 void HbLineEdit::setCursorPosition( 
   212 void HbLineEdit::setCursorPosition( 
   223         int pos )
   213         int pos )
   266     SMC_MOCK_METHOD0( QFont::Capitalization )
   256     SMC_MOCK_METHOD0( QFont::Capitalization )
   267     }
   257     }
   268 
   258 
   269 
   259 
   270 // -----------------------------------------------------------------------------
   260 // -----------------------------------------------------------------------------
       
   261 // HbLineEdit::adjustFontSizeToFitHeight
       
   262 // -----------------------------------------------------------------------------
       
   263 //
       
   264 bool HbLineEdit::adjustFontSizeToFitHeight(  ) const
       
   265     {
       
   266     SMC_MOCK_METHOD0( bool )
       
   267     }
       
   268 
       
   269 
       
   270 // -----------------------------------------------------------------------------
       
   271 // HbLineEdit::setAdjustFontSizeToFitHeight
       
   272 // -----------------------------------------------------------------------------
       
   273 //
       
   274 void HbLineEdit::setAdjustFontSizeToFitHeight( 
       
   275         bool active )
       
   276     {
       
   277     SMC_MOCK_METHOD1( void, bool, active )
       
   278     }
       
   279 
       
   280 
       
   281 // -----------------------------------------------------------------------------
       
   282 // HbLineEdit::event
       
   283 // -----------------------------------------------------------------------------
       
   284 //
       
   285 bool HbLineEdit::event( 
       
   286         QEvent * event )
       
   287     {
       
   288     SMC_MOCK_METHOD1( bool, QEvent *, event )
       
   289     }
       
   290 
       
   291 
       
   292 // -----------------------------------------------------------------------------
       
   293 // HbLineEdit::setAutoCompleteContent
       
   294 // -----------------------------------------------------------------------------
       
   295 //
       
   296 void HbLineEdit::setAutoCompleteContent( 
       
   297         QGraphicsLayoutItem * content )
       
   298     {
       
   299     SMC_MOCK_METHOD1( void, QGraphicsLayoutItem *, content )
       
   300     }
       
   301 
       
   302 
       
   303 // -----------------------------------------------------------------------------
   271 // HbLineEdit::setText
   304 // HbLineEdit::setText
   272 // -----------------------------------------------------------------------------
   305 // -----------------------------------------------------------------------------
   273 //
   306 //
   274 void HbLineEdit::setText( 
   307 void HbLineEdit::setText( 
   275         const QString & text )
   308         const QString & text )
   276     {
   309     {
   277     SMC_MOCK_METHOD1( void, const QString &, text )
   310     SMC_MOCK_METHOD1( void, const QString &, text )
       
   311     }
       
   312 
       
   313 
       
   314 // -----------------------------------------------------------------------------
       
   315 // HbLineEdit::editingFinished
       
   316 // -----------------------------------------------------------------------------
       
   317 //
       
   318 void HbLineEdit::editingFinished(  )
       
   319     {
       
   320     SMC_MOCK_METHOD0( void )
       
   321     }
       
   322 
       
   323 
       
   324 // -----------------------------------------------------------------------------
       
   325 // HbLineEdit::textChanged
       
   326 // -----------------------------------------------------------------------------
       
   327 //
       
   328 void HbLineEdit::textChanged( 
       
   329         const QString & text )
       
   330     {
       
   331     SMC_MOCK_METHOD1( void, const QString &, text )
       
   332     }
       
   333 
       
   334 
       
   335 // -----------------------------------------------------------------------------
       
   336 // HbLineEdit::selectionChanged
       
   337 // -----------------------------------------------------------------------------
       
   338 //
       
   339 void HbLineEdit::selectionChanged(  )
       
   340     {
       
   341     SMC_MOCK_METHOD0( void )
   278     }
   342     }
   279 
   343 
   280 
   344 
   281 // -----------------------------------------------------------------------------
   345 // -----------------------------------------------------------------------------
   282 // HbLineEdit::HbLineEdit
   346 // HbLineEdit::HbLineEdit
   301     SMC_MOCK_METHOD1( void, QInputMethodEvent *, event )
   365     SMC_MOCK_METHOD1( void, QInputMethodEvent *, event )
   302     }
   366     }
   303 
   367 
   304 
   368 
   305 // -----------------------------------------------------------------------------
   369 // -----------------------------------------------------------------------------
       
   370 // HbLineEdit::inputMethodQuery
       
   371 // -----------------------------------------------------------------------------
       
   372 //
       
   373 QVariant HbLineEdit::inputMethodQuery( 
       
   374         Qt::InputMethodQuery input) const
       
   375     {
       
   376     SMC_MOCK_METHOD1( QVariant, Qt::InputMethodQuery, input )
       
   377     }
       
   378 
       
   379 
       
   380 // -----------------------------------------------------------------------------
   306 // HbLineEdit::keyPressEvent
   381 // HbLineEdit::keyPressEvent
   307 // -----------------------------------------------------------------------------
   382 // -----------------------------------------------------------------------------
   308 //
   383 //
   309 void HbLineEdit::keyPressEvent( 
   384 void HbLineEdit::keyPressEvent( 
   310         QKeyEvent * event )
   385         QKeyEvent * event )
   323     SMC_MOCK_METHOD1( void, QKeyEvent *, event )
   398     SMC_MOCK_METHOD1( void, QKeyEvent *, event )
   324     }
   399     }
   325 
   400 
   326 
   401 
   327 // -----------------------------------------------------------------------------
   402 // -----------------------------------------------------------------------------
   328 // HbLineEdit::resizeEvent
       
   329 // -----------------------------------------------------------------------------
       
   330 //
       
   331 void HbLineEdit::resizeEvent( 
       
   332         QGraphicsSceneResizeEvent * event )
       
   333     {
       
   334     SMC_MOCK_METHOD1( void, QGraphicsSceneResizeEvent *, event )
       
   335     }
       
   336 
       
   337 
       
   338 // -----------------------------------------------------------------------------
       
   339 // HbLineEdit::canInsertFromMimeData
   403 // HbLineEdit::canInsertFromMimeData
   340 // -----------------------------------------------------------------------------
   404 // -----------------------------------------------------------------------------
   341 //
   405 //
   342 bool HbLineEdit::canInsertFromMimeData( 
   406 bool HbLineEdit::canInsertFromMimeData( 
   343         const QMimeData * source ) const
   407         const QMimeData * source ) const
   377     {
   441     {
   378     SMC_MOCK_METHOD1( void, QFocusEvent *, event )
   442     SMC_MOCK_METHOD1( void, QFocusEvent *, event )
   379     }
   443     }
   380 
   444 
   381 
   445 
       
   446 // -----------------------------------------------------------------------------
       
   447 // HbLineEdit::eventFilter
       
   448 // -----------------------------------------------------------------------------
       
   449 //
       
   450 bool HbLineEdit::eventFilter( 
       
   451         QObject *obj,
       
   452         QEvent *ev )
       
   453     {
       
   454     SMC_MOCK_METHOD2( bool, QObject *, obj, 
       
   455         QEvent *, ev )
       
   456     }
       
   457 
       
   458