Autogen: Tests: Add <SUBDIR>/ui_view.h AUTOUIC includes to sameName test

This commit is contained in:
Sebastian Holtermann 2017-09-03 21:31:11 +02:00
parent 4eb7d81791
commit 932656527b
13 changed files with 118 additions and 1 deletions

View File

@ -17,7 +17,10 @@ add_executable(sameName
main.cpp
)
target_link_libraries(sameName ${QT_LIBRARIES})
set_target_properties(sameName PROPERTIES AUTOMOC TRUE AUTORCC TRUE)
set_target_properties(sameName PROPERTIES
AUTOMOC TRUE
AUTOUIC TRUE
AUTORCC TRUE)
# Set different compression levels
if (QT_TEST_VERSION STREQUAL 4)

View File

@ -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;
}
}

View File

@ -2,6 +2,8 @@
#define AAA_ITEM_HPP
#include <QObject>
// Include ui_view.h only in header
#include <aaa/ui_view.h>
namespace aaa {

View File

@ -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>

View File

@ -1,4 +1,6 @@
#include "item.hpp"
// Include ui_view.h only in source
#include <bbb/ui_view.h>
namespace bbb {
@ -13,6 +15,7 @@ public:
void Item::go()
{
Ui_ViewBBB ui;
MocLocal obj;
}
}

View File

@ -2,6 +2,7 @@
#define BBB_ITEM_HPP
#include <QObject>
// Include ui_view.h only in source
namespace bbb {

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ViewBBB</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>

View File

@ -1,4 +1,6 @@
#include "item.hpp"
// Include ui_view.h in source and header
#include <ccc/ui_view.h>
namespace ccc {
@ -13,6 +15,7 @@ public:
void Item::go()
{
Ui_ViewCCC ui;
MocLocal obj;
}
}

View File

@ -2,6 +2,8 @@
#define CCC_ITEM_HPP
#include <QObject>
// Include ui_view.h in source and header
#include <ccc/ui_view.h>
namespace ccc {

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ViewCCC</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>

View File

@ -1,4 +1,6 @@
#include "item.hpp"
// Include ui_view.h in source and header
#include <ui_view.h>
class MocLocal : public QObject
{
@ -11,6 +13,7 @@ public:
void Item::go()
{
Ui_View ui;
MocLocal obj;
}

View File

@ -2,6 +2,8 @@
#define ITEM_HPP
#include <QObject>
// Include ui_view.h in source and header
#include <ui_view.h>
class Item : public QObject
{

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>View</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>