|
@@
-334,8
+334,8
void tst_QBarSeries::mouseclicked()
|
|
334
|
QTest::qWaitForWindowShown(&view);
|
|
334
|
QTest::qWaitForWindowShown(&view);
|
|
335
|
|
|
335
|
|
|
336
|
//====================================================================================
|
|
336
|
//====================================================================================
|
|
337
|
// barset 1, category test1
|
|
337
|
// barset 1, bar 0
|
|
338
|
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(106,142));
|
|
338
|
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(95,142));
|
|
339
|
QCoreApplication::processEvents(QEventLoop::AllEvents, 1000);
|
|
339
|
QCoreApplication::processEvents(QEventLoop::AllEvents, 1000);
|
|
340
|
|
|
340
|
|
|
341
|
QCOMPARE(seriesSpy.count(), 1);
|
|
341
|
QCOMPARE(seriesSpy.count(), 1);
|
|
@@
-346,8
+346,8
void tst_QBarSeries::mouseclicked()
|
|
346
|
QVERIFY(seriesSpyArg.at(1).toInt() == 0);
|
|
346
|
QVERIFY(seriesSpyArg.at(1).toInt() == 0);
|
|
347
|
|
|
347
|
|
|
348
|
//====================================================================================
|
|
348
|
//====================================================================================
|
|
349
|
// barset 1, category test2
|
|
349
|
// barset 1, bar 1
|
|
350
|
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(199,142));
|
|
350
|
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(164,142));
|
|
351
|
QCoreApplication::processEvents(QEventLoop::AllEvents, 1000);
|
|
351
|
QCoreApplication::processEvents(QEventLoop::AllEvents, 1000);
|
|
352
|
|
|
352
|
|
|
353
|
QCOMPARE(seriesSpy.count(), 1);
|
|
353
|
QCOMPARE(seriesSpy.count(), 1);
|
|
@@
-358,8
+358,8
void tst_QBarSeries::mouseclicked()
|
|
358
|
QVERIFY(seriesSpyArg.at(1).toInt() == 1);
|
|
358
|
QVERIFY(seriesSpyArg.at(1).toInt() == 1);
|
|
359
|
|
|
359
|
|
|
360
|
//====================================================================================
|
|
360
|
//====================================================================================
|
|
361
|
// barset 1, category test3
|
|
361
|
// barset 1, bar 2
|
|
362
|
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(291,142));
|
|
362
|
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(234,142));
|
|
363
|
QCoreApplication::processEvents(QEventLoop::AllEvents, 1000);
|
|
363
|
QCoreApplication::processEvents(QEventLoop::AllEvents, 1000);
|
|
364
|
|
|
364
|
|
|
365
|
QCOMPARE(seriesSpy.count(), 1);
|
|
365
|
QCOMPARE(seriesSpy.count(), 1);
|
|
@@
-370,8
+370,8
void tst_QBarSeries::mouseclicked()
|
|
370
|
QVERIFY(seriesSpyArg.at(1).toInt() == 2);
|
|
370
|
QVERIFY(seriesSpyArg.at(1).toInt() == 2);
|
|
371
|
|
|
371
|
|
|
372
|
//====================================================================================
|
|
372
|
//====================================================================================
|
|
373
|
// barset 2, category test1
|
|
373
|
// barset 2, bar 0
|
|
374
|
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(134,142));
|
|
374
|
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(115,142));
|
|
375
|
QCoreApplication::processEvents(QEventLoop::AllEvents, 1000);
|
|
375
|
QCoreApplication::processEvents(QEventLoop::AllEvents, 1000);
|
|
376
|
|
|
376
|
|
|
377
|
QCOMPARE(seriesSpy.count(), 1);
|
|
377
|
QCOMPARE(seriesSpy.count(), 1);
|
|
@@
-382,8
+382,8
void tst_QBarSeries::mouseclicked()
|
|
382
|
QVERIFY(seriesSpyArg.at(1).toInt() == 0);
|
|
382
|
QVERIFY(seriesSpyArg.at(1).toInt() == 0);
|
|
383
|
|
|
383
|
|
|
384
|
//====================================================================================
|
|
384
|
//====================================================================================
|
|
385
|
// barset 2, category test2
|
|
385
|
// barset 2, bar 1
|
|
386
|
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(227,142));
|
|
386
|
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(185,142));
|
|
387
|
QCoreApplication::processEvents(QEventLoop::AllEvents, 1000);
|
|
387
|
QCoreApplication::processEvents(QEventLoop::AllEvents, 1000);
|
|
388
|
|
|
388
|
|
|
389
|
QCOMPARE(seriesSpy.count(), 1);
|
|
389
|
QCOMPARE(seriesSpy.count(), 1);
|
|
@@
-394,8
+394,8
void tst_QBarSeries::mouseclicked()
|
|
394
|
QVERIFY(seriesSpyArg.at(1).toInt() == 1);
|
|
394
|
QVERIFY(seriesSpyArg.at(1).toInt() == 1);
|
|
395
|
|
|
395
|
|
|
396
|
//====================================================================================
|
|
396
|
//====================================================================================
|
|
397
|
// barset 2, category test3
|
|
397
|
// barset 2, bar 2
|
|
398
|
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(319,142));
|
|
398
|
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(254,142));
|
|
399
|
QCoreApplication::processEvents(QEventLoop::AllEvents, 1000);
|
|
399
|
QCoreApplication::processEvents(QEventLoop::AllEvents, 1000);
|
|
400
|
|
|
400
|
|
|
401
|
QCOMPARE(seriesSpy.count(), 1);
|
|
401
|
QCOMPARE(seriesSpy.count(), 1);
|
|
@@
-445,7
+445,7
void tst_QBarSeries::mousehovered()
|
|
445
|
|
|
445
|
|
|
446
|
//=======================================================================
|
|
446
|
//=======================================================================
|
|
447
|
// move mouse on top of set1
|
|
447
|
// move mouse on top of set1
|
|
448
|
QTest::mouseMove(view.viewport(), QPoint(106,142));
|
|
448
|
QTest::mouseMove(view.viewport(), QPoint(95,142));
|
|
449
|
|
|
449
|
|
|
450
|
QVERIFY(seriesSpy.count() == 1);
|
|
450
|
QVERIFY(seriesSpy.count() == 1);
|
|
451
|
|
|
451
|
|
|
@@
-456,7
+456,7
void tst_QBarSeries::mousehovered()
|
|
456
|
|
|
456
|
|
|
457
|
//=======================================================================
|
|
457
|
//=======================================================================
|
|
458
|
// move mouse from top of set1 to top of set2
|
|
458
|
// move mouse from top of set1 to top of set2
|
|
459
|
QTest::mouseMove(view.viewport(), QPoint(134,142));
|
|
459
|
QTest::mouseMove(view.viewport(), QPoint(116,142));
|
|
460
|
|
|
460
|
|
|
461
|
QVERIFY(seriesSpy.count() == 2);
|
|
461
|
QVERIFY(seriesSpy.count() == 2);
|
|
462
|
|
|
462
|
|
|
@@
-474,7
+474,7
void tst_QBarSeries::mousehovered()
|
|
474
|
|
|
474
|
|
|
475
|
//=======================================================================
|
|
475
|
//=======================================================================
|
|
476
|
// move mouse from top of set2 to background
|
|
476
|
// move mouse from top of set2 to background
|
|
477
|
QTest::mouseMove(view.viewport(), QPoint(134,0));
|
|
477
|
QTest::mouseMove(view.viewport(), QPoint(116,0));
|
|
478
|
QVERIFY(seriesSpy.count() == 1);
|
|
478
|
QVERIFY(seriesSpy.count() == 1);
|
|
479
|
|
|
479
|
|
|
480
|
// should leave set2
|
|
480
|
// should leave set2
|