18 |
18 |
19 #include <hbmenu.h> |
19 #include <hbmenu.h> |
20 #include <hbmainwindow.h> |
20 #include <hbmainwindow.h> |
21 #include <hbinstance.h> |
21 #include <hbinstance.h> |
22 #include "hbstubs_helper.h" |
22 #include "hbstubs_helper.h" |
23 #include <hbmessagebox.h> |
23 #include <hbdialog.h> |
24 #include <hbapplication.h> |
24 #include <hbapplication.h> |
25 #include <hbcolorscheme.h> |
25 #include <hbcolorscheme.h> |
26 #include <hbview.h> |
26 #include <hbview.h> |
27 #include <hbactivitymanager.h> |
27 #include <hbactivitymanager.h> |
28 #include <QCoreApplication> |
28 #include <QCoreApplication> |
29 #include <QApplication> |
29 #include <QApplication> |
30 #include <QTimer> |
30 #include <QTimer> |
31 #include <QGesture> |
31 #include <QGesture> |
32 #include <hblistview.h> |
32 #include <hblistview.h> |
33 #include <hblistviewitem.h> |
33 #include <hblistviewitem.h> |
|
34 #include <hbmessagebox.h> |
34 |
35 |
35 int actionCount = 0; |
36 int actionCount = 0; |
36 Qt::Orientation windowOrientation = Qt::Vertical; |
37 Qt::Orientation windowOrientation = Qt::Vertical; |
37 bool testMenuShown = false; |
38 bool testMenuShown = false; |
38 bool testDialogShown = false; |
39 bool testDialogShown = false; |
294 Q_UNUSED(receiver) |
295 Q_UNUSED(receiver) |
295 Q_UNUSED(member) |
296 Q_UNUSED(member) |
296 testDialogShown = true; |
297 testDialogShown = true; |
297 } |
298 } |
298 |
299 |
|
300 void HbDialog::open() |
|
301 { |
|
302 testDialogShown = true; |
|
303 } |
|
304 |
|
305 void HbMessageBox::question(const QString &questionText, |
|
306 QObject *receiver , |
|
307 const char *member, |
|
308 HbMessageBox::StandardButtons buttons, |
|
309 QGraphicsWidget *headingWidget, |
|
310 QGraphicsScene *scene, |
|
311 QGraphicsItem *parent) |
|
312 { |
|
313 Q_UNUSED(questionText) |
|
314 Q_UNUSED(receiver) |
|
315 Q_UNUSED(member) |
|
316 Q_UNUSED(buttons) |
|
317 Q_UNUSED(scene) |
|
318 Q_UNUSED(parent) |
|
319 testDialogShown = true; |
|
320 } |
299 |
321 |
300 // ----------------------------------------------------------------------------- |
322 // ----------------------------------------------------------------------------- |
301 // |
323 // |
302 // ----------------------------------------------------------------------------- |
324 // ----------------------------------------------------------------------------- |
303 // |
325 // |
392 QList<HbMainWindow *> list; |
414 QList<HbMainWindow *> list; |
393 list.append(testWindow); |
415 list.append(testWindow); |
394 return list; |
416 return list; |
395 } |
417 } |
396 |
418 |
397 void HbMessageBox::setText(const QString &string) |
|
398 { |
|
399 if (string == "Ok") { |
|
400 selectedActionString = "primary"; |
|
401 } else if (string == "Cancel") { |
|
402 selectedActionString = "secondary"; |
|
403 } |
|
404 } |
|
405 |
|
406 void QTimer::singleShot(int msec, QObject *receiver, const char *member) |
419 void QTimer::singleShot(int msec, QObject *receiver, const char *member) |
407 { |
420 { |
408 testSingleShotTimer = true; |
421 testSingleShotTimer = true; |
409 } |
422 } |
410 |
423 |