Changeset View
Changeset View
Standalone View
Standalone View
autotests/test_screen_edges.cpp
Show First 20 Lines • Show All 912 Lines • ▼ Show 20 Line(s) | 862 | { | |||
---|---|---|---|---|---|
913 | event.root = XCB_WINDOW_NONE; | 913 | event.root = XCB_WINDOW_NONE; | ||
914 | event.child = XCB_WINDOW_NONE; | 914 | event.child = XCB_WINDOW_NONE; | ||
915 | event.event = (*it)->window(); | 915 | event.event = (*it)->window(); | ||
916 | event.same_screen_focus = 1; | 916 | event.same_screen_focus = 1; | ||
917 | event.time = QDateTime::currentMSecsSinceEpoch(); | 917 | event.time = QDateTime::currentMSecsSinceEpoch(); | ||
918 | setPos(QPoint(0, 50)); | 918 | setPos(QPoint(0, 50)); | ||
919 | QCOMPARE(s->isEntered(&event), false); | 919 | QCOMPARE(s->isEntered(&event), false); | ||
920 | QVERIFY(approachingSpy.isEmpty()); | 920 | QVERIFY(approachingSpy.isEmpty()); | ||
921 | // let's also verify the check | ||||
922 | s->check(QPoint(0, 50), QDateTime::currentDateTime(), false); | ||||
923 | QVERIFY(approachingSpy.isEmpty()); | ||||
921 | 924 | | |||
922 | s->gestureRecognizer()->startSwipeGesture(QPoint(0, 50)); | 925 | s->gestureRecognizer()->startSwipeGesture(QPoint(0, 50)); | ||
923 | QCOMPARE(approachingSpy.count(), 1); | 926 | QCOMPARE(approachingSpy.count(), 1); | ||
924 | s->gestureRecognizer()->cancelSwipeGesture(); | 927 | s->gestureRecognizer()->cancelSwipeGesture(); | ||
925 | QCOMPARE(approachingSpy.count(), 2); | 928 | QCOMPARE(approachingSpy.count(), 2); | ||
926 | 929 | | |||
927 | // let's reconfigure | 930 | // let's reconfigure | ||
928 | group.writeEntry("Top", "none"); | 931 | group.writeEntry("Top", "none"); | ||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |