diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2017-09-03 19:31:11 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2017-09-21 07:58:24 (GMT) |
commit | 932656527bdbf580335a082f8ecbaa888a710901 (patch) | |
tree | f1e6faa5765f21bddb9511d738fe6eed2fefd7ce /Tests/QtAutogen/sameName/aaa | |
parent | 4eb7d81791d38042e13ced8c01cb4e3a3452c704 (diff) | |
download | CMake-932656527bdbf580335a082f8ecbaa888a710901.zip CMake-932656527bdbf580335a082f8ecbaa888a710901.tar.gz CMake-932656527bdbf580335a082f8ecbaa888a710901.tar.bz2 |
Autogen: Tests: Add <SUBDIR>/ui_view.h AUTOUIC includes to sameName test
Diffstat (limited to 'Tests/QtAutogen/sameName/aaa')
-rw-r--r-- | Tests/QtAutogen/sameName/aaa/item.cpp | 2 | ||||
-rw-r--r-- | Tests/QtAutogen/sameName/aaa/item.hpp | 2 | ||||
-rw-r--r-- | Tests/QtAutogen/sameName/aaa/view.ui | 24 |
3 files changed, 28 insertions, 0 deletions
diff --git a/Tests/QtAutogen/sameName/aaa/item.cpp b/Tests/QtAutogen/sameName/aaa/item.cpp index 85312e9..e35d3d1 100644 --- a/Tests/QtAutogen/sameName/aaa/item.cpp +++ b/Tests/QtAutogen/sameName/aaa/item.cpp @@ -1,4 +1,5 @@ #include "item.hpp" +// Include ui_view.h only in header namespace aaa { @@ -13,6 +14,7 @@ public: void Item::go() { + Ui_ViewAAA ui; MocLocal obj; } } diff --git a/Tests/QtAutogen/sameName/aaa/item.hpp b/Tests/QtAutogen/sameName/aaa/item.hpp index b63466f..875f72f 100644 --- a/Tests/QtAutogen/sameName/aaa/item.hpp +++ b/Tests/QtAutogen/sameName/aaa/item.hpp @@ -2,6 +2,8 @@ #define AAA_ITEM_HPP #include <QObject> +// Include ui_view.h only in header +#include <aaa/ui_view.h> namespace aaa { diff --git a/Tests/QtAutogen/sameName/aaa/view.ui b/Tests/QtAutogen/sameName/aaa/view.ui new file mode 100644 index 0000000..0f09980 --- /dev/null +++ b/Tests/QtAutogen/sameName/aaa/view.ui @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>ViewAAA</class> + <widget class="QWidget" name="Base"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>400</width> + <height>300</height> + </rect> + </property> + <property name="windowTitle"> + <string>Form</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QTreeView" name="treeView"/> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> |