TestFixtureForPaintingWindowEvents() { _mouse_buttons_type_id = qRegisterMetaType<Qt::MouseButtons>("Qt::MouseButtons"); _event_type_id = qRegisterMetaType<Event>("Event"); _test_window = new PaintingWindow(300, 300); _event_scheduler.set_receiver(_test_window); _mouse_pos = QPoint(10, 10); _key = Qt::Key_A; _wait_ms = 100; _event_time_ms = 10; }
TestOpenGLWindowEvents() { _mouse_buttons_type_id = qRegisterMetaType<Qt::MouseButtons>( "Qt::MouseButtons" ); _event_type_id = qRegisterMetaType<Event>("Event"); _test_window = new OpenGLWindow(300, 300); _event_scheduler.set_receiver(_test_window); _mouse_pos = QPoint(10, 10); _key = Qt::Key_F; #ifdef _WIN32 _wait_ms = 100; _event_time_ms = 10; #else _wait_ms = 10; _event_time_ms = 1; #endif }