From 9ce4006565c4fd4420f01e4c2d767b67b89698da Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 25 Jul 2018 18:02:09 +0200 Subject: Fix moc'ing of enum class flags Keep the original class name around for a little longer so we can generate the correct scoped enum in the moc output. Task-number: QTBUG-47652 Change-Id: Ib5934316fa786cc475335b03c86b8ec2dc239055 Reviewed-by: Olivier Goffart (Woboq GmbH) --- tests/auto/tools/moc/tst_moc.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/auto/tools/moc/tst_moc.cpp') diff --git a/tests/auto/tools/moc/tst_moc.cpp b/tests/auto/tools/moc/tst_moc.cpp index 753da401a2..8a08de9bc6 100644 --- a/tests/auto/tools/moc/tst_moc.cpp +++ b/tests/auto/tools/moc/tst_moc.cpp @@ -2263,6 +2263,8 @@ void tst_Moc::cxx11Enums_data() QTest::newRow("TypedEnumClass 2") << meta2 << QByteArray("TypedEnumClass") << 'C' << true; QTest::newRow("NormalEnum") << meta1 << QByteArray("NormalEnum") << 'D' << false; QTest::newRow("NormalEnum 2") << meta2 << QByteArray("NormalEnum") << 'D' << false; + QTest::newRow("ClassFlags") << meta1 << QByteArray("ClassFlags") << 'F' << true; + QTest::newRow("ClassFlags 2") << meta2 << QByteArray("ClassFlags") << 'F' << true; } void tst_Moc::cxx11Enums() -- cgit v1.2.3