From d833c9224984ad408ca4074cbe147a39dabc8277 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Tue, 15 Sep 2015 15:41:14 +0200 Subject: Calendar: fix compilation with QT_NO_ACCESSIBILITY Change-Id: If840f4bf715b4290fb50388b94e33420505b1a9b Reviewed-by: Mitch Curtis Reviewed-by: J-P Nurmi --- tests/auto/accessibility/tst_accessibility.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests/auto/accessibility/tst_accessibility.cpp') diff --git a/tests/auto/accessibility/tst_accessibility.cpp b/tests/auto/accessibility/tst_accessibility.cpp index 31700044..3a648dee 100644 --- a/tests/auto/accessibility/tst_accessibility.cpp +++ b/tests/auto/accessibility/tst_accessibility.cpp @@ -90,6 +90,10 @@ void tst_accessibility::a11y_data() QTest::newRow("ToggleButton") << "togglebutton" << 0x0000002B << "ToggleButton"; //QAccessible::Button QTest::newRow("ToolBar") << "toolbar" << 0x00000016 << ""; //QAccessible::ToolBar QTest::newRow("ToolButton") << "toolbutton" << 0x0000002B << "ToolButton"; //QAccessible::Button + + QTest::newRow("CalendarView") << "calendarview" << 0x0 << "CalendarView"; //QAccessible::NoRole + QTest::newRow("DayOfWeekRow") << "dayofweekrow" << 0x0 << "DayOfWeekRow"; //QAccessible::NoRole + QTest::newRow("WeekNumberColumn") << "weeknumbercolumn" << 0x0 << "WeekNumberColumn"; //QAccessible::NoRole } void tst_accessibility::a11y() @@ -101,7 +105,11 @@ void tst_accessibility::a11y() QQmlComponent component(&engine); QString fn = name; #ifdef QT_NO_ACCESSIBILITY - if (name == QLatin1Literal("textarea") || name == QLatin1Literal("textfield")) + if (name == QLatin1Literal("textarea") + || name == QLatin1Literal("textfield") + || name == QLatin1Literal("calendarview") + || name == QLatin1Literal("dayofweekrow") + || name == QLatin1Literal("weeknumbercolumn")) fn += QLatin1Literal("-2"); #endif component.loadUrl(testFileUrl(fn + ".qml")); -- cgit v1.2.3