summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2015-07-21 16:24:36 +0200
committerMitch Curtis <mitch.curtis@theqtcompany.com>2015-07-27 09:02:43 +0000
commitabc2ec74e9131cdae1bf9a458dfe9a2ef46b889c (patch)
tree29686a00d04054c6da420a7e45d1dada0baae6e1
parentfafa3b414d41742be302a09ce866025feb8c962f (diff)
downloadqtquickcontrols-abc2ec74e9131cdae1bf9a458dfe9a2ef46b889c.tar.gz
Remove unused Qt.LeftButton argument to mouseMove() in auto tests.
That parameter is actually delay, so a delay of 1 millisecond was being passed. These were found with: git grep "mouseMove\(.*\, .*\, .*\, Qt.LeftButton\)" Change-Id: I00172dcd457aa4aae12d98421bc95525235c9570 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
-rw-r--r--tests/auto/controls/data/tst_calendar.qml6
-rw-r--r--tests/auto/controls/data/tst_switch.qml2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/controls/data/tst_calendar.qml b/tests/auto/controls/data/tst_calendar.qml
index 7aa0547f..310451b0 100644
--- a/tests/auto/controls/data/tst_calendar.qml
+++ b/tests/auto/controls/data/tst_calendar.qml
@@ -574,7 +574,7 @@ Item {
}
function dragTo(cellX, cellY, expectedCellIndex, expectedDate) {
- mouseMove(calendar, toPixelsX(cellX), toPixelsY(cellY), Qt.LeftButton);
+ mouseMove(calendar, toPixelsX(cellX), toPixelsY(cellY));
compare(calendar.selectedDate, expectedDate);
compare(calendar.__panel.pressedCellIndex, expectedCellIndex);
compare(hoveredSignalSpy.count, 1);
@@ -657,7 +657,7 @@ Item {
// unwanted month changes if moving within a bunch of "next month" cells.
// We still emit the signals as usual, though.
var oldDate = calendar.selectedDate;
- mouseMove(calendar, toPixelsX(5), toPixelsY(4), Qt.LeftButton);
+ mouseMove(calendar, toPixelsX(5), toPixelsY(4));
compare(calendar.selectedDate, oldDate);
compare(calendar.__panel.pressedCellIndex, 32);
compare(calendar.__panel.hoveredCellIndex, 33);
@@ -689,7 +689,7 @@ Item {
calendar.selectedDate = calendar.minimumDate;
compare(calendar.visibleMonth, calendar.minimumDate.getMonth());
- mouseMove(calendar, toPixelsX(4), toPixelsY(0), Qt.LeftButton);
+ mouseMove(calendar, toPixelsX(4), toPixelsY(0));
compare(calendar.selectedDate, calendar.minimumDate);
compare(calendar.__panel.pressedCellIndex, -1);
compare(hoveredSignalSpy.count, 0);
diff --git a/tests/auto/controls/data/tst_switch.qml b/tests/auto/controls/data/tst_switch.qml
index fd929d48..2ab0582b 100644
--- a/tests/auto/controls/data/tst_switch.qml
+++ b/tests/auto/controls/data/tst_switch.qml
@@ -127,7 +127,7 @@ Item {
// release outside -> no clicked()
mousePress(aSwitch, aSwitch.x + 1, aSwitch.y + 1, Qt.LeftButton);
- mouseMove(aSwitch, aSwitch.x - 1, aSwitch.y - 1, Qt.LeftButton);
+ mouseMove(aSwitch, aSwitch.x - 1, aSwitch.y - 1);
mouseRelease(aSwitch, aSwitch.x - 1, aSwitch.y - 1, Qt.LeftButton);
compare(signalSpy.count, 1);
}