@@ -371,7 +371,7 void tst_QBarSeries::mouseclicked() | |||
|
371 | 371 | |
|
372 | 372 | //==================================================================================== |
|
373 | 373 | // barset 1, bar 0 |
|
374 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint( |
|
|
374 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(72,150)); | |
|
375 | 375 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
376 | 376 | |
|
377 | 377 | QCOMPARE(seriesSpy.count(), 1); |
@@ -389,7 +389,7 void tst_QBarSeries::mouseclicked() | |||
|
389 | 389 | |
|
390 | 390 | //==================================================================================== |
|
391 | 391 | // barset 1, bar 1 |
|
392 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(18 |
|
|
392 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(186,150)); | |
|
393 | 393 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
394 | 394 | |
|
395 | 395 | QCOMPARE(seriesSpy.count(), 1); |
@@ -407,7 +407,7 void tst_QBarSeries::mouseclicked() | |||
|
407 | 407 | |
|
408 | 408 | //==================================================================================== |
|
409 | 409 | // barset 1, bar 2 |
|
410 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint( |
|
|
410 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(300,150)); | |
|
411 | 411 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
412 | 412 | |
|
413 | 413 | QCOMPARE(seriesSpy.count(), 1); |
@@ -425,7 +425,7 void tst_QBarSeries::mouseclicked() | |||
|
425 | 425 | |
|
426 | 426 | //==================================================================================== |
|
427 | 427 | // barset 2, bar 0 |
|
428 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(1 |
|
|
428 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(100,150)); | |
|
429 | 429 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
430 | 430 | |
|
431 | 431 | QCOMPARE(seriesSpy.count(), 1); |
@@ -443,7 +443,7 void tst_QBarSeries::mouseclicked() | |||
|
443 | 443 | |
|
444 | 444 | //==================================================================================== |
|
445 | 445 | // barset 2, bar 1 |
|
446 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(21 |
|
|
446 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(214,150)); | |
|
447 | 447 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
448 | 448 | |
|
449 | 449 | QCOMPARE(seriesSpy.count(), 1); |
@@ -461,7 +461,7 void tst_QBarSeries::mouseclicked() | |||
|
461 | 461 | |
|
462 | 462 | //==================================================================================== |
|
463 | 463 | // barset 2, bar 2 |
|
464 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(3 |
|
|
464 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(328,150)); | |
|
465 | 465 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
466 | 466 | |
|
467 | 467 | QCOMPARE(seriesSpy.count(), 1); |
@@ -510,7 +510,7 void tst_QBarSeries::mousehovered() | |||
|
510 | 510 | |
|
511 | 511 | //======================================================================= |
|
512 | 512 | // move mouse to left border |
|
513 |
QTest::mouseMove(view.viewport(), QPoint(0, 1 |
|
|
513 | QTest::mouseMove(view.viewport(), QPoint(0, 150)); | |
|
514 | 514 | QCoreApplication::processEvents(QEventLoop::AllEvents, 10000); |
|
515 | 515 | TRY_COMPARE(seriesSpy.count(), 0); |
|
516 | 516 | TRY_COMPARE(setSpy1.count(), 0); |
@@ -518,7 +518,7 void tst_QBarSeries::mousehovered() | |||
|
518 | 518 | |
|
519 | 519 | //======================================================================= |
|
520 | 520 | // move mouse on top of set1 |
|
521 |
QTest::mouseMove(view.viewport(), QPoint( |
|
|
521 | QTest::mouseMove(view.viewport(), QPoint(72,150)); | |
|
522 | 522 | TRY_COMPARE(seriesSpy.count(), 1); |
|
523 | 523 | TRY_COMPARE(setSpy1.count(), 1); |
|
524 | 524 | TRY_COMPARE(setSpy2.count(), 0); |
@@ -534,7 +534,7 void tst_QBarSeries::mousehovered() | |||
|
534 | 534 | |
|
535 | 535 | //======================================================================= |
|
536 | 536 | // move mouse from top of set1 to top of set2 |
|
537 |
QTest::mouseMove(view.viewport(), QPoint(1 |
|
|
537 | QTest::mouseMove(view.viewport(), QPoint(100,150)); | |
|
538 | 538 | TRY_COMPARE(seriesSpy.count(), 2); |
|
539 | 539 | TRY_COMPARE(setSpy1.count(), 1); |
|
540 | 540 | TRY_COMPARE(setSpy2.count(), 1); |
@@ -561,7 +561,7 void tst_QBarSeries::mousehovered() | |||
|
561 | 561 | |
|
562 | 562 | //======================================================================= |
|
563 | 563 | // move mouse from top of set2 to background |
|
564 |
QTest::mouseMove(view.viewport(), QPoint(1 |
|
|
564 | QTest::mouseMove(view.viewport(), QPoint(100,0)); | |
|
565 | 565 | TRY_COMPARE(seriesSpy.count(), 1); |
|
566 | 566 | TRY_COMPARE(setSpy1.count(), 0); |
|
567 | 567 | TRY_COMPARE(setSpy2.count(), 1); |
@@ -337,7 +337,7 void tst_QHorizontalBarSeries::mouseclicked() | |||
|
337 | 337 | |
|
338 | 338 | //==================================================================================== |
|
339 | 339 | // barset 1, bar 0 |
|
340 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(200,21 |
|
|
340 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(200,241)); | |
|
341 | 341 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
342 | 342 | |
|
343 | 343 | QCOMPARE(seriesSpy.count(), 1); |
@@ -355,7 +355,7 void tst_QHorizontalBarSeries::mouseclicked() | |||
|
355 | 355 | |
|
356 | 356 | //==================================================================================== |
|
357 | 357 | // barset 1, bar 1 |
|
358 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(200,16 |
|
|
358 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(200,160)); | |
|
359 | 359 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
360 | 360 | |
|
361 | 361 | QCOMPARE(seriesSpy.count(), 1); |
@@ -373,7 +373,7 void tst_QHorizontalBarSeries::mouseclicked() | |||
|
373 | 373 | |
|
374 | 374 | //==================================================================================== |
|
375 | 375 | // barset 1, bar 2 |
|
376 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(200, |
|
|
376 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(200,79)); | |
|
377 | 377 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
378 | 378 | |
|
379 | 379 | QCOMPARE(seriesSpy.count(), 1); |
@@ -391,7 +391,7 void tst_QHorizontalBarSeries::mouseclicked() | |||
|
391 | 391 | |
|
392 | 392 | //==================================================================================== |
|
393 | 393 | // barset 2, bar 0 |
|
394 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(200,2 |
|
|
394 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(200,221)); | |
|
395 | 395 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
396 | 396 | |
|
397 | 397 | QCOMPARE(seriesSpy.count(), 1); |
@@ -409,7 +409,7 void tst_QHorizontalBarSeries::mouseclicked() | |||
|
409 | 409 | |
|
410 | 410 | //==================================================================================== |
|
411 | 411 | // barset 2, bar 1 |
|
412 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(200,14 |
|
|
412 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(200,140)); | |
|
413 | 413 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
414 | 414 | |
|
415 | 415 | QCOMPARE(seriesSpy.count(), 1); |
@@ -427,7 +427,7 void tst_QHorizontalBarSeries::mouseclicked() | |||
|
427 | 427 | |
|
428 | 428 | //==================================================================================== |
|
429 | 429 | // barset 2, bar 2 |
|
430 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(200, |
|
|
430 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(200,59)); | |
|
431 | 431 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
432 | 432 | |
|
433 | 433 | QCOMPARE(seriesSpy.count(), 1); |
@@ -484,7 +484,7 void tst_QHorizontalBarSeries::mousehovered() | |||
|
484 | 484 | |
|
485 | 485 | //======================================================================= |
|
486 | 486 | // move mouse on top of set1 |
|
487 |
QTest::mouseMove(view.viewport(), QPoint(200,21 |
|
|
487 | QTest::mouseMove(view.viewport(), QPoint(200,241)); | |
|
488 | 488 | TRY_COMPARE(seriesSpy.count(), 1); |
|
489 | 489 | TRY_COMPARE(setSpy1.count(), 1); |
|
490 | 490 | TRY_COMPARE(setSpy2.count(), 0); |
@@ -500,7 +500,7 void tst_QHorizontalBarSeries::mousehovered() | |||
|
500 | 500 | |
|
501 | 501 | //======================================================================= |
|
502 | 502 | // move mouse from top of set1 to top of set2 |
|
503 |
QTest::mouseMove(view.viewport(), QPoint(200,2 |
|
|
503 | QTest::mouseMove(view.viewport(), QPoint(200,221)); | |
|
504 | 504 | TRY_COMPARE(seriesSpy.count(), 2); |
|
505 | 505 | TRY_COMPARE(setSpy1.count(), 1); |
|
506 | 506 | TRY_COMPARE(setSpy2.count(), 1); |
@@ -527,7 +527,7 void tst_QHorizontalBarSeries::mousehovered() | |||
|
527 | 527 | |
|
528 | 528 | //======================================================================= |
|
529 | 529 | // move mouse from top of set2 to background |
|
530 |
QTest::mouseMove(view.viewport(), QPoint(0,2 |
|
|
530 | QTest::mouseMove(view.viewport(), QPoint(0,221)); | |
|
531 | 531 | TRY_COMPARE(seriesSpy.count(), 1); |
|
532 | 532 | TRY_COMPARE(setSpy1.count(), 0); |
|
533 | 533 | TRY_COMPARE(setSpy2.count(), 1); |
@@ -120,7 +120,7 void tst_QHorizontalPercentBarSeries::mouseclicked() | |||
|
120 | 120 | |
|
121 | 121 | //==================================================================================== |
|
122 | 122 | // barset 1, category test1 |
|
123 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(1 |
|
|
123 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(115,231)); | |
|
124 | 124 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
125 | 125 | |
|
126 | 126 | QCOMPARE(seriesSpy.count(), 1); |
@@ -132,7 +132,7 void tst_QHorizontalPercentBarSeries::mouseclicked() | |||
|
132 | 132 | |
|
133 | 133 | //==================================================================================== |
|
134 | 134 | // barset 1, category test2 |
|
135 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(1 |
|
|
135 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(115,150)); | |
|
136 | 136 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
137 | 137 | |
|
138 | 138 | QCOMPARE(seriesSpy.count(), 1); |
@@ -144,7 +144,7 void tst_QHorizontalPercentBarSeries::mouseclicked() | |||
|
144 | 144 | |
|
145 | 145 | //==================================================================================== |
|
146 | 146 | // barset 1, category test3 |
|
147 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(1 |
|
|
147 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(115,69)); | |
|
148 | 148 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
149 | 149 | |
|
150 | 150 | QCOMPARE(seriesSpy.count(), 1); |
@@ -156,7 +156,7 void tst_QHorizontalPercentBarSeries::mouseclicked() | |||
|
156 | 156 | |
|
157 | 157 | //==================================================================================== |
|
158 | 158 | // barset 2, category test1 |
|
159 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(2 |
|
|
159 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(285,230)); | |
|
160 | 160 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
161 | 161 | |
|
162 | 162 | QCOMPARE(seriesSpy.count(), 1); |
@@ -168,7 +168,7 void tst_QHorizontalPercentBarSeries::mouseclicked() | |||
|
168 | 168 | |
|
169 | 169 | //==================================================================================== |
|
170 | 170 | // barset 2, category test2 |
|
171 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(2 |
|
|
171 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(285,150)); | |
|
172 | 172 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
173 | 173 | |
|
174 | 174 | QCOMPARE(seriesSpy.count(), 1); |
@@ -180,7 +180,7 void tst_QHorizontalPercentBarSeries::mouseclicked() | |||
|
180 | 180 | |
|
181 | 181 | //==================================================================================== |
|
182 | 182 | // barset 2, category test3 |
|
183 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(2 |
|
|
183 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(285,69)); | |
|
184 | 184 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
185 | 185 | |
|
186 | 186 | QCOMPARE(seriesSpy.count(), 1); |
@@ -221,13 +221,13 void tst_QHorizontalPercentBarSeries::mousehovered() | |||
|
221 | 221 | |
|
222 | 222 | //======================================================================= |
|
223 | 223 | // move mouse to left border |
|
224 |
QTest::mouseMove(view.viewport(), QPoint(0, 2 |
|
|
224 | QTest::mouseMove(view.viewport(), QPoint(0, 231)); | |
|
225 | 225 | QCoreApplication::processEvents(QEventLoop::AllEvents, 10000); |
|
226 | 226 | TRY_COMPARE(seriesSpy.count(), 0); |
|
227 | 227 | |
|
228 | 228 | //======================================================================= |
|
229 | 229 | // move mouse on top of set1 |
|
230 |
QTest::mouseMove(view.viewport(), QPoint(1 |
|
|
230 | QTest::mouseMove(view.viewport(), QPoint(115,231)); | |
|
231 | 231 | TRY_COMPARE(seriesSpy.count(), 1); |
|
232 | 232 | |
|
233 | 233 | QList<QVariant> seriesSpyArg = seriesSpy.takeFirst(); |
@@ -237,7 +237,7 void tst_QHorizontalPercentBarSeries::mousehovered() | |||
|
237 | 237 | |
|
238 | 238 | //======================================================================= |
|
239 | 239 | // move mouse from top of set1 to top of set2 |
|
240 |
QTest::mouseMove(view.viewport(), QPoint(2 |
|
|
240 | QTest::mouseMove(view.viewport(), QPoint(285,231)); | |
|
241 | 241 | TRY_COMPARE(seriesSpy.count(), 2); |
|
242 | 242 | |
|
243 | 243 | // should leave set1 |
@@ -254,7 +254,7 void tst_QHorizontalPercentBarSeries::mousehovered() | |||
|
254 | 254 | |
|
255 | 255 | //======================================================================= |
|
256 | 256 | // move mouse from top of set2 to background |
|
257 |
QTest::mouseMove(view.viewport(), QPoint(2 |
|
|
257 | QTest::mouseMove(view.viewport(), QPoint(285,300)); | |
|
258 | 258 | TRY_COMPARE(seriesSpy.count(), 1); |
|
259 | 259 | |
|
260 | 260 | // should leave set2 |
@@ -120,7 +120,7 void tst_QHorizontalStackedBarSeries::mouseclicked() | |||
|
120 | 120 | |
|
121 | 121 | //==================================================================================== |
|
122 | 122 | // barset 1, category test1 |
|
123 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(1 |
|
|
123 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(115,231)); | |
|
124 | 124 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
125 | 125 | |
|
126 | 126 | QCOMPARE(seriesSpy.count(), 1); |
@@ -132,7 +132,7 void tst_QHorizontalStackedBarSeries::mouseclicked() | |||
|
132 | 132 | |
|
133 | 133 | //==================================================================================== |
|
134 | 134 | // barset 1, category test2 |
|
135 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(1 |
|
|
135 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(115,150)); | |
|
136 | 136 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
137 | 137 | |
|
138 | 138 | QCOMPARE(seriesSpy.count(), 1); |
@@ -144,7 +144,7 void tst_QHorizontalStackedBarSeries::mouseclicked() | |||
|
144 | 144 | |
|
145 | 145 | //==================================================================================== |
|
146 | 146 | // barset 1, category test3 |
|
147 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(1 |
|
|
147 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(115,69)); | |
|
148 | 148 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
149 | 149 | |
|
150 | 150 | QCOMPARE(seriesSpy.count(), 1); |
@@ -156,7 +156,7 void tst_QHorizontalStackedBarSeries::mouseclicked() | |||
|
156 | 156 | |
|
157 | 157 | //==================================================================================== |
|
158 | 158 | // barset 2, category test1 |
|
159 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(2 |
|
|
159 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(285,230)); | |
|
160 | 160 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
161 | 161 | |
|
162 | 162 | QCOMPARE(seriesSpy.count(), 1); |
@@ -168,7 +168,7 void tst_QHorizontalStackedBarSeries::mouseclicked() | |||
|
168 | 168 | |
|
169 | 169 | //==================================================================================== |
|
170 | 170 | // barset 2, category test2 |
|
171 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(2 |
|
|
171 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(285,150)); | |
|
172 | 172 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
173 | 173 | |
|
174 | 174 | QCOMPARE(seriesSpy.count(), 1); |
@@ -180,7 +180,7 void tst_QHorizontalStackedBarSeries::mouseclicked() | |||
|
180 | 180 | |
|
181 | 181 | //==================================================================================== |
|
182 | 182 | // barset 2, category test3 |
|
183 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(2 |
|
|
183 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(285,69)); | |
|
184 | 184 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
185 | 185 | |
|
186 | 186 | QCOMPARE(seriesSpy.count(), 1); |
@@ -221,13 +221,13 void tst_QHorizontalStackedBarSeries::mousehovered() | |||
|
221 | 221 | |
|
222 | 222 | //======================================================================= |
|
223 | 223 | // move mouse to left border |
|
224 |
QTest::mouseMove(view.viewport(), QPoint(0, 2 |
|
|
224 | QTest::mouseMove(view.viewport(), QPoint(0, 231)); | |
|
225 | 225 | QCoreApplication::processEvents(QEventLoop::AllEvents, 10000); |
|
226 | 226 | TRY_COMPARE(seriesSpy.count(), 0); |
|
227 | 227 | |
|
228 | 228 | //======================================================================= |
|
229 | 229 | // move mouse on top of set1 |
|
230 |
QTest::mouseMove(view.viewport(), QPoint(1 |
|
|
230 | QTest::mouseMove(view.viewport(), QPoint(115,231)); | |
|
231 | 231 | TRY_COMPARE(seriesSpy.count(), 1); |
|
232 | 232 | |
|
233 | 233 | QList<QVariant> seriesSpyArg = seriesSpy.takeFirst(); |
@@ -237,7 +237,7 void tst_QHorizontalStackedBarSeries::mousehovered() | |||
|
237 | 237 | |
|
238 | 238 | //======================================================================= |
|
239 | 239 | // move mouse from top of set1 to top of set2 |
|
240 |
QTest::mouseMove(view.viewport(), QPoint(2 |
|
|
240 | QTest::mouseMove(view.viewport(), QPoint(285,231)); | |
|
241 | 241 | TRY_COMPARE(seriesSpy.count(), 2); |
|
242 | 242 | |
|
243 | 243 | // should leave set1 |
@@ -254,7 +254,7 void tst_QHorizontalStackedBarSeries::mousehovered() | |||
|
254 | 254 | |
|
255 | 255 | //======================================================================= |
|
256 | 256 | // move mouse from top of set2 to background |
|
257 |
QTest::mouseMove(view.viewport(), QPoint(2 |
|
|
257 | QTest::mouseMove(view.viewport(), QPoint(285,300)); | |
|
258 | 258 | TRY_COMPARE(seriesSpy.count(), 1); |
|
259 | 259 | |
|
260 | 260 | // should leave set2 |
@@ -120,7 +120,7 void tst_QPercentBarSeries::mouseclicked() | |||
|
120 | 120 | |
|
121 | 121 | //==================================================================================== |
|
122 | 122 | // barset 1, category test1 |
|
123 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint( |
|
|
123 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(86,211)); | |
|
124 | 124 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
125 | 125 | |
|
126 | 126 | QCOMPARE(seriesSpy.count(), 1); |
@@ -132,7 +132,7 void tst_QPercentBarSeries::mouseclicked() | |||
|
132 | 132 | |
|
133 | 133 | //==================================================================================== |
|
134 | 134 | // barset 1, category test2 |
|
135 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint( |
|
|
135 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(200,211)); | |
|
136 | 136 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
137 | 137 | |
|
138 | 138 | QCOMPARE(seriesSpy.count(), 1); |
@@ -144,7 +144,7 void tst_QPercentBarSeries::mouseclicked() | |||
|
144 | 144 | |
|
145 | 145 | //==================================================================================== |
|
146 | 146 | // barset 1, category test3 |
|
147 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint( |
|
|
147 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(314,211)); | |
|
148 | 148 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
149 | 149 | |
|
150 | 150 | QCOMPARE(seriesSpy.count(), 1); |
@@ -156,7 +156,7 void tst_QPercentBarSeries::mouseclicked() | |||
|
156 | 156 | |
|
157 | 157 | //==================================================================================== |
|
158 | 158 | // barset 2, category test1 |
|
159 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint( |
|
|
159 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(86,90)); | |
|
160 | 160 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
161 | 161 | |
|
162 | 162 | QCOMPARE(seriesSpy.count(), 1); |
@@ -168,7 +168,7 void tst_QPercentBarSeries::mouseclicked() | |||
|
168 | 168 | |
|
169 | 169 | //==================================================================================== |
|
170 | 170 | // barset 2, category test2 |
|
171 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint( |
|
|
171 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(200,90)); | |
|
172 | 172 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
173 | 173 | |
|
174 | 174 | QCOMPARE(seriesSpy.count(), 1); |
@@ -180,7 +180,7 void tst_QPercentBarSeries::mouseclicked() | |||
|
180 | 180 | |
|
181 | 181 | //==================================================================================== |
|
182 | 182 | // barset 2, category test3 |
|
183 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint( |
|
|
183 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(314,90)); | |
|
184 | 184 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
185 | 185 | |
|
186 | 186 | QCOMPARE(seriesSpy.count(), 1); |
@@ -221,13 +221,13 void tst_QPercentBarSeries::mousehovered() | |||
|
221 | 221 | |
|
222 | 222 | //======================================================================= |
|
223 | 223 | // move mouse to left border |
|
224 |
QTest::mouseMove(view.viewport(), QPoint(0, |
|
|
224 | QTest::mouseMove(view.viewport(), QPoint(0, 211)); | |
|
225 | 225 | QCoreApplication::processEvents(QEventLoop::AllEvents, 10000); |
|
226 | 226 | TRY_COMPARE(seriesSpy.count(), 0); |
|
227 | 227 | |
|
228 | 228 | //======================================================================= |
|
229 | 229 | // move mouse on top of set1 |
|
230 |
QTest::mouseMove(view.viewport(), QPoint( |
|
|
230 | QTest::mouseMove(view.viewport(), QPoint(86,211)); | |
|
231 | 231 | TRY_COMPARE(seriesSpy.count(), 1); |
|
232 | 232 | |
|
233 | 233 | QList<QVariant> seriesSpyArg = seriesSpy.takeFirst(); |
@@ -237,7 +237,7 void tst_QPercentBarSeries::mousehovered() | |||
|
237 | 237 | |
|
238 | 238 | //======================================================================= |
|
239 | 239 | // move mouse from top of set1 to top of set2 |
|
240 |
QTest::mouseMove(view.viewport(), QPoint( |
|
|
240 | QTest::mouseMove(view.viewport(), QPoint(86,90)); | |
|
241 | 241 | TRY_COMPARE(seriesSpy.count(), 2); |
|
242 | 242 | |
|
243 | 243 | // should leave set1 |
@@ -254,7 +254,7 void tst_QPercentBarSeries::mousehovered() | |||
|
254 | 254 | |
|
255 | 255 | //======================================================================= |
|
256 | 256 | // move mouse from top of set2 to background |
|
257 |
QTest::mouseMove(view.viewport(), QPoint( |
|
|
257 | QTest::mouseMove(view.viewport(), QPoint(86,0)); | |
|
258 | 258 | TRY_COMPARE(seriesSpy.count(), 1); |
|
259 | 259 | |
|
260 | 260 | // should leave set2 |
@@ -120,7 +120,7 void tst_QStackedBarSeries::mouseclicked() | |||
|
120 | 120 | |
|
121 | 121 | //==================================================================================== |
|
122 | 122 | // barset 1, category test1 |
|
123 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint( |
|
|
123 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(86,211)); | |
|
124 | 124 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
125 | 125 | |
|
126 | 126 | QCOMPARE(seriesSpy.count(), 1); |
@@ -132,7 +132,7 void tst_QStackedBarSeries::mouseclicked() | |||
|
132 | 132 | |
|
133 | 133 | //==================================================================================== |
|
134 | 134 | // barset 1, category test2 |
|
135 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint( |
|
|
135 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(200,211)); | |
|
136 | 136 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
137 | 137 | |
|
138 | 138 | QCOMPARE(seriesSpy.count(), 1); |
@@ -144,7 +144,7 void tst_QStackedBarSeries::mouseclicked() | |||
|
144 | 144 | |
|
145 | 145 | //==================================================================================== |
|
146 | 146 | // barset 1, category test3 |
|
147 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint( |
|
|
147 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(314,211)); | |
|
148 | 148 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
149 | 149 | |
|
150 | 150 | QCOMPARE(seriesSpy.count(), 1); |
@@ -156,7 +156,7 void tst_QStackedBarSeries::mouseclicked() | |||
|
156 | 156 | |
|
157 | 157 | //==================================================================================== |
|
158 | 158 | // barset 2, category test1 |
|
159 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint( |
|
|
159 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(86,90)); | |
|
160 | 160 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
161 | 161 | |
|
162 | 162 | QCOMPARE(seriesSpy.count(), 1); |
@@ -168,7 +168,7 void tst_QStackedBarSeries::mouseclicked() | |||
|
168 | 168 | |
|
169 | 169 | //==================================================================================== |
|
170 | 170 | // barset 2, category test2 |
|
171 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint( |
|
|
171 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(200,90)); | |
|
172 | 172 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
173 | 173 | |
|
174 | 174 | QCOMPARE(seriesSpy.count(), 1); |
@@ -180,7 +180,7 void tst_QStackedBarSeries::mouseclicked() | |||
|
180 | 180 | |
|
181 | 181 | //==================================================================================== |
|
182 | 182 | // barset 2, category test3 |
|
183 |
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint( |
|
|
183 | QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, QPoint(314,90)); | |
|
184 | 184 | QCoreApplication::processEvents(QEventLoop::AllEvents, 1000); |
|
185 | 185 | |
|
186 | 186 | QCOMPARE(seriesSpy.count(), 1); |
@@ -221,13 +221,13 void tst_QStackedBarSeries::mousehovered() | |||
|
221 | 221 | |
|
222 | 222 | //======================================================================= |
|
223 | 223 | // move mouse to left border |
|
224 |
QTest::mouseMove(view.viewport(), QPoint(0, |
|
|
224 | QTest::mouseMove(view.viewport(), QPoint(0, 211)); | |
|
225 | 225 | QCoreApplication::processEvents(QEventLoop::AllEvents, 10000); |
|
226 | 226 | TRY_COMPARE(seriesSpy.count(), 0); |
|
227 | 227 | |
|
228 | 228 | //======================================================================= |
|
229 | 229 | // move mouse on top of set1 |
|
230 |
QTest::mouseMove(view.viewport(), QPoint( |
|
|
230 | QTest::mouseMove(view.viewport(), QPoint(86,211)); | |
|
231 | 231 | TRY_COMPARE(seriesSpy.count(), 1); |
|
232 | 232 | |
|
233 | 233 | QList<QVariant> seriesSpyArg = seriesSpy.takeFirst(); |
@@ -237,7 +237,7 void tst_QStackedBarSeries::mousehovered() | |||
|
237 | 237 | |
|
238 | 238 | //======================================================================= |
|
239 | 239 | // move mouse from top of set1 to top of set2 |
|
240 |
QTest::mouseMove(view.viewport(), QPoint( |
|
|
240 | QTest::mouseMove(view.viewport(), QPoint(86,90)); | |
|
241 | 241 | TRY_COMPARE(seriesSpy.count(), 2); |
|
242 | 242 | |
|
243 | 243 | // should leave set1 |
@@ -254,7 +254,7 void tst_QStackedBarSeries::mousehovered() | |||
|
254 | 254 | |
|
255 | 255 | //======================================================================= |
|
256 | 256 | // move mouse from top of set2 to background |
|
257 |
QTest::mouseMove(view.viewport(), QPoint( |
|
|
257 | QTest::mouseMove(view.viewport(), QPoint(86,0)); | |
|
258 | 258 | TRY_COMPARE(seriesSpy.count(), 1); |
|
259 | 259 | |
|
260 | 260 | // should leave set2 |
General Comments 0
You need to be logged in to leave comments.
Login now