summaryrefslogtreecommitdiffstats
path: root/Tests/QtAutogen/uicOnlySource
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2016-11-25 12:19:32 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2016-11-29 16:16:33 (GMT)
commitd675004dbac12a938cf60fac39e5b9b81bbb6a99 (patch)
treee2be2e3949af0b52310bc21d3e5fc1bee8fff130 /Tests/QtAutogen/uicOnlySource
parentcb4bc19ae1b2f61165543ef926037936b179414d (diff)
downloadCMake-d675004dbac12a938cf60fac39e5b9b81bbb6a99.zip
CMake-d675004dbac12a938cf60fac39e5b9b81bbb6a99.tar.gz
CMake-d675004dbac12a938cf60fac39e5b9b81bbb6a99.tar.bz2
QtAutogen tests: Rename uiconly target to camel case uicOnly
Also move uicOnly sources to dedicated uicOnlySource directory.
Diffstat (limited to 'Tests/QtAutogen/uicOnlySource')
-rw-r--r--Tests/QtAutogen/uicOnlySource/uiconly.cpp13
-rw-r--r--Tests/QtAutogen/uicOnlySource/uiconly.h20
-rw-r--r--Tests/QtAutogen/uicOnlySource/uiconly.ui24
3 files changed, 57 insertions, 0 deletions
diff --git a/Tests/QtAutogen/uicOnlySource/uiconly.cpp b/Tests/QtAutogen/uicOnlySource/uiconly.cpp
new file mode 100644
index 0000000..ac22789
--- /dev/null
+++ b/Tests/QtAutogen/uicOnlySource/uiconly.cpp
@@ -0,0 +1,13 @@
+
+#include "uiconly.h"
+
+UicOnly::UicOnly(QWidget* parent)
+ : QWidget(parent)
+ , ui(new Ui::UicOnly)
+{
+}
+
+int main()
+{
+ return 0;
+}
diff --git a/Tests/QtAutogen/uicOnlySource/uiconly.h b/Tests/QtAutogen/uicOnlySource/uiconly.h
new file mode 100644
index 0000000..9b0b1b4
--- /dev/null
+++ b/Tests/QtAutogen/uicOnlySource/uiconly.h
@@ -0,0 +1,20 @@
+
+#ifndef UIC_ONLY_H
+#define UIC_ONLY_H
+
+#include <QWidget>
+#include <memory>
+
+#include "ui_uiconly.h"
+
+class UicOnly : public QWidget
+{
+ Q_OBJECT
+public:
+ explicit UicOnly(QWidget* parent = 0);
+
+private:
+ const std::auto_ptr<Ui::UicOnly> ui;
+};
+
+#endif
diff --git a/Tests/QtAutogen/uicOnlySource/uiconly.ui b/Tests/QtAutogen/uicOnlySource/uiconly.ui
new file mode 100644
index 0000000..13fb832
--- /dev/null
+++ b/Tests/QtAutogen/uicOnlySource/uiconly.ui
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>UicOnly</class>
+ <widget class="QWidget" name="UicOnly">
+ <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>