videocollection/tsrc/stubs/src/hbinputdialog.cpp
changeset 35 3738fe97f027
child 17 69946d1824c4
equal deleted inserted replaced
34:bbb98528c666 35:3738fe97f027
       
     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: stub hbinputdialog
       
    15 * 
       
    16 */
       
    17 
       
    18 #include "hbinputdialog.h"
       
    19 
       
    20 bool HbInputDialog::mGetTextFails = false;
       
    21 
       
    22 
       
    23 QString HbInputDialog::getText(const QString &label,const QString &text,
       
    24            bool *ok, QGraphicsScene *scene, QGraphicsItem *parent)
       
    25 {
       
    26    Q_UNUSED(label);
       
    27    Q_UNUSED(scene);
       
    28    Q_UNUSED(parent);
       
    29    QString textReturn = text;
       
    30    if(mGetTextFails)
       
    31    {
       
    32        *ok = false;
       
    33        textReturn = "";
       
    34    }
       
    35    else
       
    36    {
       
    37        *ok = true;            
       
    38    }
       
    39    return textReturn;
       
    40 }
       
    41