handleContextMenuEvent(static_cast<QContextMenuEvent *>(event));
return true;
#endif
+
+ // Handing show events to widgets (see below) here would cause them to be triggered twice
+ case QEvent::Show:
+ case QEvent::Hide:
+ return QWindow::event(event);
+
default:
break;
}
if (create && !widget.testAttribute(Qt::WA_WState_Created))
widget.create();
- if (m_platform == QStringLiteral("windows") || m_platform == QStringLiteral("xcb")) {
- QEXPECT_FAIL("window: only show", "QTBUG-26424", Continue);
- QEXPECT_FAIL("window: show/hide", "QTBUG-26424", Continue);
- QEXPECT_FAIL("window: show/hide/create", "QTBUG-26424", Continue);
- }
QCOMPARE(widget.numberOfShowEvents, expectedShowEvents);
- if (m_platform == QStringLiteral("windows") || m_platform == QStringLiteral("xcb")) {
- QEXPECT_FAIL("window: show/hide", "QTBUG-26424", Continue);
- QEXPECT_FAIL("window: show/hide/create", "QTBUG-26424", Continue);
- }
QCOMPARE(widget.numberOfHideEvents, expectedHideEvents);
}
QTest::keyClick(&spin, Qt::Key_1);
spin.show();
QVERIFY(QTest::qWaitForWindowExposed(&spin));
- QCOMPARE(spin.text(), QLatin1String("1.00"));
+ QCOMPARE(spin.text(), QLatin1String("1"));
}
void tst_QDoubleSpinBox::task255471_decimalsValidation()
// to check that submenu is to the right of the main menu too.
#ifndef Q_OS_WINCE_WM
QVERIFY(sub->pos().x() > main->pos().x());
- QEXPECT_FAIL("", "QTBUG-22565", Abort);
QCOMPARE(sub->activeAction(), subAction);
#endif
}