--- a/videocollection/tsrc/stubs/src/hbinputdialog.cpp Fri Apr 16 14:59:52 2010 +0300
+++ b/videocollection/tsrc/stubs/src/hbinputdialog.cpp Mon May 03 12:32:50 2010 +0300
@@ -18,6 +18,8 @@
#include "hbinputdialog.h"
bool HbInputDialog::mGetTextFails = false;
+QString HbInputDialog::mGetTextReturnValue = QString();
+int HbInputDialog::mGetTextCallCount = 0;
QString HbInputDialog::getText(const QString &label,const QString &text,
@@ -26,7 +28,16 @@
Q_UNUSED(label);
Q_UNUSED(scene);
Q_UNUSED(parent);
- QString textReturn = text;
+ mGetTextCallCount++;
+ QString textReturn;
+ if(HbInputDialog::mGetTextReturnValue.isNull())
+ {
+ textReturn = text;
+ }
+ else
+ {
+ textReturn = mGetTextReturnValue;
+ }
if(mGetTextFails)
{
*ok = false;