summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/sameName/aaa/item.cpp
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-22 14:15:47 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-09-22 14:15:54 (GMT)
commit7df7eea7cf9c0bcaa7c690a6f56995704c78a7b6 (patch)
tree95df6934359165b9935e09259615121ca5c25589 /Tests/QtAutogen/sameName/aaa/item.cpp
parent33eec572328847da74f87c99bde3c5f0eef992bb (diff)
parent51fd7b714ba518e70f4aa192b1d39e32eea79aef (diff)
downloadCMake-7df7eea7cf9c0bcaa7c690a6f56995704c78a7b6.zip
CMake-7df7eea7cf9c0bcaa7c690a6f56995704c78a7b6.tar.gz
CMake-7df7eea7cf9c0bcaa7c690a6f56995704c78a7b6.tar.bz2
Merge topic 'autogen-generators-refactor'
51fd7b71 Autogen: Tests: Add a change-not test to the mocRerun test c8f92db7 Autogen: Tests: Disable an AUTOMOC_DEPENDS_FILTER test for Ninja 3c77515e Autogen: Tests: Refactor the QtAutogenRebuild rccDepends test 04a0daee Autogen: Tests: Move each rerun test script to a NAME.cmake file e5c6610a Autogen: Tests: Extend CMAKE_AUTOMOC_DEPEND_FILTERS rebuild test 93265652 Autogen: Tests: Add <SUBDIR>/ui_view.h AUTOUIC includes to sameName test 4eb7d817 Autogen: Tests: Add <SUBDIR>/item.moc includes to sameName test 3f223743 Autogen: Read relative paths from rcc output ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1244
Diffstat (limited to 'Tests/QtAutogen/sameName/aaa/item.cpp')
-rw-r--r--Tests/QtAutogen/sameName/aaa/item.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/QtAutogen/sameName/aaa/item.cpp b/Tests/QtAutogen/sameName/aaa/item.cpp
index 95dd3b6..e35d3d1 100644
--- a/Tests/QtAutogen/sameName/aaa/item.cpp
+++ b/Tests/QtAutogen/sameName/aaa/item.cpp
@@ -1,8 +1,22 @@
#include "item.hpp"
+// Include ui_view.h only in header
namespace aaa {
+class MocLocal : public QObject
+{
+ Q_OBJECT;
+
+public:
+ MocLocal() = default;
+ ~MocLocal() = default;
+};
+
void Item::go()
{
+ Ui_ViewAAA ui;
+ MocLocal obj;
}
}
+
+#include "aaa/item.moc"