diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-07-25 18:02:09 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-07-26 22:14:56 +0000 |
commit | 9ce4006565c4fd4420f01e4c2d767b67b89698da (patch) | |
tree | 9198d896d746575dd804f6aed9d7dd531d01569e /tests/auto/tools/moc/tst_moc.cpp | |
parent | 89f784757e81c7df540ce757eccb8af4da1c8e22 (diff) |
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) <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto/tools/moc/tst_moc.cpp')
-rw-r--r-- | tests/auto/tools/moc/tst_moc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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() |